key binding for sidebar folder list

2011-11-24 Thread SK
Hi,

I know there are key bindings to go up and down the mailbox folder in
the sidebar. Is there any way I can make my life a bit more easier by
binding a key to select a specific mailbox folder. For example ctrl-1
would select the first inbox, ctrl-2 the second etc.?

Regards,
SK


Re: Error opening mailbox

2011-11-24 Thread Paul

Everything is here but the error(s).

On Thursday, 24 November, 2011 at 07:12:23 GMT, Ravi Uday wrote:

Hi,

I use IMAP and my INBOX has just 38 msgs.
Still I am unable to open the mails after fetching the errors.
Could anyone tell me how to fix this.

If I press TAB and then open anyother folder say 'Sent' I can view all of them.
Only INBOX fails.
I have :

set spoolfile=imap://email.xxx.com/INBOX
set folder=imap://email.xxx.com/
set imap_user = 'ruday'
set imap_pass = ''

OSX:

bash-3.2$ mutt-1.5.21/mutt -v
Mutt 1.5.21 (2010-09-15)
Copyright (C) 1996-2009 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Darwin 10.8.0 (i386)
ncurses: ncurses 5.7.20081102 (compiled with 5.7)
libiconv: 1.11
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  +USE_FCNTL  -USE_FLOCK
+USE_POP  +USE_IMAP  -USE_SMTP
+USE_SSL_OPENSSL  -USE_SSL_GNUTLS  -USE_SASL  -USE_GSS  +HAVE_GETADDRINFO
+HAVE_REGCOMP  -USE_GNU_REGEX
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  -CRYPT_BACKEND_GPGME
+EXACT_ADDRESS  -SUN_ATTACHMENT
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
+HAVE_LANGINFO_YESEXPR
+HAVE_ICONV  -ICONV_NONTRANS  -HAVE_LIBIDN  +HAVE_GETSID  -USE_HCACHE
-ISPELL
SENDMAIL=/usr/sbin/sendmail
MAILPATH=/var/mail
PKGDATADIR=/Applications/mutt-install/share/mutt
SYSCONFDIR=/Applications/mutt-install/etc
EXECSHELL=bash
-MIXMASTER
To contact the developers, please mail to mutt-...@mutt.org.
To report a bug, please visit http://bugs.mutt.org/.

bash-3.2$


--

.


Re: key binding for sidebar folder list

2011-11-24 Thread du yang
On Thursday 11/24/11 19:38:02 CST, SK wrote:
 Hi,
 
 I know there are key bindings to go up and down the mailbox folder in
 the sidebar. Is there any way I can make my life a bit more easier by
 binding a key to select a specific mailbox folder. For example ctrl-1
 would select the first inbox, ctrl-2 the second etc.?
 
 Regards,
 SK


What you find should probably be a macro like this,

macro index,pager \C1 sync-mailboxchange-folder=inbox/enter Open 
=inbox/

It works for folder changing, but it doesn't show any effect in sidebar.

-- 
oooO:
(..):
:\.(:::Oooo::
::\_)::(..)::
:::)./:::
::(_/


signature.asc
Description: Digital signature


Firefox mailto: links not working correctly

2011-11-24 Thread Chris Green
I have a pretty standard Firefox 3.6.24 running in xubuntu.

I have mutt set as my default E-Mail application in Preferred
Applications and in Firefox's preferences.  However it's not working
properly, when I click on a mailto: link an empty E-Mail gets sent.

It looks to me as if this is something to do with mutt needing a
terminal window to run in but all the menus seem to know about mutt
already as if they should know this.

Can anyone suggest what might be wrong?

-- 
Chris Green


'important' flagged messages mutt and offlineimap

2011-11-24 Thread Matt Ford
Hi,

One for those that use offlineimap and mutt.  

When I set an 'important' flag using mutt and then sync my mail (using
offlineimap) the flag is not propagated from mutt to the imap server.

The other direction works fine: messages flagged as important are picked
up fine by mutt when set in other clients and synced via offlineimap.

Annoying as all my flags are now out of sync now...

I can't seem to find any setting to sort this out - anyone know how to
fix or have any idea why this is happening?

I've seen a couple of internet posts about how starred mails are not
propagated upwards from mutt to gmail, this looks to be the same thing.
Unfortunately I didn't see a fix.

Cheers,

Matt. 


signature.asc
Description: Digital signature


Re: 'important' flagged messages mutt and offlineimap

2011-11-24 Thread Tim Gray

On Nov 24, 2011 at 02:58 PM +, Matt Ford wrote:

I've seen a couple of internet posts about how starred mails are not
propagated upwards from mutt to gmail, this looks to be the same thing.
Unfortunately I didn't see a fix.


Just to note that I do use mutt and offlineimap.  Flags set in mutt do 
appear to propagate to the server.  Flags set elsewhere also come back 
through offlineimap to mutt.  I tried it turning flags on and off in 
mutt, webmail, and on my phone and they all seemed to work ok.


I did seem to have a problem once in a while though.  If I added a flag 
remotely, offlineimap didn't always pick it up immediately.  If I made 
another change in my mailbox in mutt, locally, that needed to be synced, 
offlineimap would resync that box, sending the local change out and 
pulling in the previously made remote change as well.  Sounds like 
something I should investigate and send off to the offlineimap list.  
That being said, it doesn't strike me as a huge annoyance because I 
rarely flag things anywhere but mutt, and even if I did flag something 
on my phone, the next time I got a new message in my inbox, the flag 
would be pulled in as well by offlineimap.


Note, some of this might have to do with the 'quick' setting in 
offlineimap.  The notes for that setting say:



Ignore any flag updates on IMAP servers


As far as your IMAP server goes, if you are using gmail, who the hell 
knows what works and what doesn't.  All of the above is with regards to 
a non-gmail server.  I've weened myself off of gmail over the years 
precisely because it doesn't play well with others.


pgpGatGXu9THT.pgp
Description: PGP signature


Re: Error opening mailbox

2011-11-24 Thread Ravi Uday
Paul,

I am not sure what you meant. Could be little clear.
Let me know if my mail isn't clear

- Ravi
On Thu, Nov 24, 2011 at 5:53 PM, Paul muttml923...@rainslide.net wrote:
 Everything is here but the error(s).

 On Thursday, 24 November, 2011 at 07:12:23 GMT, Ravi Uday wrote:

 Hi,

 I use IMAP and my INBOX has just 38 msgs.
 Still I am unable to open the mails after fetching the errors.
 Could anyone tell me how to fix this.

 If I press TAB and then open anyother folder say 'Sent' I can view all of
 them.
 Only INBOX fails.
 I have :

 set spoolfile=imap://email.xxx.com/INBOX
 set folder=imap://email.xxx.com/
 set imap_user = 'ruday'
 set imap_pass = ''

 OSX:

 bash-3.2$ mutt-1.5.21/mutt -v
 Mutt 1.5.21 (2010-09-15)
 Copyright (C) 1996-2009 Michael R. Elkins and others.
 Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
 Mutt is free software, and you are welcome to redistribute it
 under certain conditions; type `mutt -vv' for details.

 System: Darwin 10.8.0 (i386)
 ncurses: ncurses 5.7.20081102 (compiled with 5.7)
 libiconv: 1.11
 Compile options:
 -DOMAIN
 -DEBUG
 -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  +USE_FCNTL
  -USE_FLOCK
 +USE_POP  +USE_IMAP  -USE_SMTP
 +USE_SSL_OPENSSL  -USE_SSL_GNUTLS  -USE_SASL  -USE_GSS  +HAVE_GETADDRINFO
 +HAVE_REGCOMP  -USE_GNU_REGEX
 +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
 +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
 +CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME
  -CRYPT_BACKEND_GPGME
 +EXACT_ADDRESS  -SUN_ATTACHMENT
 +ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
 +HAVE_LANGINFO_YESEXPR
 +HAVE_ICONV  -ICONV_NONTRANS  -HAVE_LIBIDN  +HAVE_GETSID  -USE_HCACHE
 -ISPELL
 SENDMAIL=/usr/sbin/sendmail
 MAILPATH=/var/mail
 PKGDATADIR=/Applications/mutt-install/share/mutt
 SYSCONFDIR=/Applications/mutt-install/etc
 EXECSHELL=bash
 -MIXMASTER
 To contact the developers, please mail to mutt-...@mutt.org.
 To report a bug, please visit http://bugs.mutt.org/.

 bash-3.2$

 --

 .



Re: Firefox mailto: links not working correctly

2011-11-24 Thread Marco Giusti
On Thu, Nov 24, 2011 at 01:44:03PM +, Chris Green wrote:
 I have a pretty standard Firefox 3.6.24 running in xubuntu.
 
 I have mutt set as my default E-Mail application in Preferred
 Applications and in Firefox's preferences.  However it's not working
 properly, when I click on a mailto: link an empty E-Mail gets sent.
 
 It looks to me as if this is something to do with mutt needing a
 terminal window to run in but all the menus seem to know about mutt
 already as if they should know this.
 
 Can anyone suggest what might be wrong?

attached a simple script that is use. set it executable and call this
from firefox, not mutt directly
#!/usr/bin/env python

from __future__ import with_statement
import os
import sys
import cgi
import urlparse
import subprocess
import tempfile
import contextlib

tmpfile = None


@contextlib.contextmanager
def fdopen(fd, mode='r', bufsize=-1):
yield os.fdopen(fd, mode, bufsize)


def simpleParam(hname):
def _(hvalue):
return hname, hvalue
return _


def bodyParam(hvalue):
global tmpfile

fd, filename = tempfile.mkstemp()
tmpfile = filename
with fdopen(fd, 'w') as fp:
fp.write(hvalue)
return '-i', filename


ARGS = {
'subject': simpleParam('-s'),
'bcc': simpleParam('-b'),
'cc': simpleParam('-c'),
'body': bodyParam,
}


def filterParams(name):
return name in ARGS


def parsequery(query):
args = []
parts = urlparse.urlparse(query, scheme='mailto')
to = parts[2]
if to.find('?')  0:
to, params = to.split('?', 1)
params = cgi.parse_qs(params)
for name in filter(filterParams, params):
hvalue = ','.join(params[name])
args += ARGS[name](hvalue)

args += ['--', to]
return args


if len(sys.argv) == 1:
print  sys.stderr, 'Usage: %s address' % sys.argv[0]
sys.exit(1)

args = ['xterm', '-e', 'mutt'] + parsequery(sys.argv[1])
retcode = subprocess.call(args)
if tmpfile and os.path.exists(tmpfile):
os.unlink(tmpfile)

sys.exit(retcode)


Re: Firefox mailto: links not working correctly

2011-11-24 Thread Patrice Levesque

 attached a simple script that is use. set it executable and call this
 from firefox, not mutt directly

I believe there's no need for pyrotechnics :)

As mutt supports mailto: URLs natively, this suffices:

#!/bin/sh
exec xterm -e mutt $@



-- 
 --|--
|
Patrice Levesque
 http://ptaff.ca/
mutt.wa...@ptaff.ca
|
 --|--
--


signature.asc
Description: Digital signature


Re: Error opening mailbox

2011-11-24 Thread Remco Rijnders
On Thu, Nov 24, 2011 at 11:14:04PM +0530, Ravi wrote in 
CA+YGHLH005XdGQ2qsjZ=BeAw-++uEgWMLH=toj46dxift9f...@mail.gmail.com:

Paul,

I am not sure what you meant. Could be little clear.
Let me know if my mail isn't clear



Hi Ravi,

You wrote: Still I am unable to open the mails after fetching the 
errors..


What errors though? What happens / doesn't happen, and are you being shown 
any error messages?


Kind regards,

Remco


signature.asc
Description: Digital signature


Re: Firefox mailto: links not working correctly

2011-11-24 Thread Marco Giusti
On Thu, Nov 24, 2011 at 02:02:11PM -0500, Patrice Levesque wrote:
 
  attached a simple script that is use. set it executable and call this
  from firefox, not mutt directly
 
 I believe there's no need for pyrotechnics :)
 
 As mutt supports mailto: URLs natively, this suffices:
 
 #!/bin/sh
 exec xterm -e mutt $@

I wrote that script some time ago when, I don't remember exactly what,
some field did not worked as expected.


Re: Firefox mailto: links not working correctly

2011-11-24 Thread Patrick Shanahan
* Marco Giusti marco.giu...@gmail.com [11-24-11 14:49]:
 On Thu, Nov 24, 2011 at 02:02:11PM -0500, Patrice Levesque wrote:
  As mutt supports mailto: URLs natively, this suffices:
  
  #!/bin/sh
  exec xterm -e mutt $@
 
 I wrote that script some time ago when, I don't remember exactly what,
 some field did not worked as expected.

I just tested it on openSUSE 12.1 and it worked fine.
-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Firefox mailto: links not working correctly

2011-11-24 Thread Marco Giusti
On Thu, Nov 24, 2011 at 02:55:16PM -0500, Patrick Shanahan wrote:
 * Marco Giusti marco.giu...@gmail.com [11-24-11 14:49]:
  On Thu, Nov 24, 2011 at 02:02:11PM -0500, Patrice Levesque wrote:
   As mutt supports mailto: URLs natively, this suffices:
   
   #!/bin/sh
   exec xterm -e mutt $@
  
  I wrote that script some time ago when, I don't remember exactly what,
  some field did not worked as expected.
 
 I just tested it on openSUSE 12.1 and it worked fine.

I think it was for mutt 1.5.[18-20] but I agree that now, after Patrice
pointed out to me, is completely useless.


Re: Firefox mailto: links not working correctly

2011-11-24 Thread Patrick Shanahan
* Marco Giusti marco.giu...@gmail.com [11-24-11 15:24]:
 On Thu, Nov 24, 2011 at 02:55:16PM -0500, Patrick Shanahan wrote:
  * Marco Giusti marco.giu...@gmail.com [11-24-11 14:49]:
   On Thu, Nov 24, 2011 at 02:02:11PM -0500, Patrice Levesque wrote:
As mutt supports mailto: URLs natively, this suffices:

#!/bin/sh
exec xterm -e mutt $@
   
   I wrote that script some time ago when, I don't remember exactly what,
   some field did not worked as expected.
  
  I just tested it on openSUSE 12.1 and it worked fine.
 
 I think it was for mutt 1.5.[18-20] but I agree that now, after Patrice
 pointed out to me, is completely useless.

I don't understand useless.  It works as intended and I have mutt-1.5.21

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Firefox mailto: links not working correctly

2011-11-24 Thread Marco Giusti
On Thu, Nov 24, 2011 at 03:37:59PM -0500, Patrick Shanahan wrote:
 * Marco Giusti marco.giu...@gmail.com [11-24-11 15:24]:
  On Thu, Nov 24, 2011 at 02:55:16PM -0500, Patrick Shanahan wrote:
   * Marco Giusti marco.giu...@gmail.com [11-24-11 14:49]:
On Thu, Nov 24, 2011 at 02:02:11PM -0500, Patrice Levesque wrote:
 As mutt supports mailto: URLs natively, this suffices:
 
 #!/bin/sh
 exec xterm -e mutt $@

I wrote that script some time ago when, I don't remember exactly what,
some field did not worked as expected.
   
   I just tested it on openSUSE 12.1 and it worked fine.
  
  I think it was for mutt 1.5.[18-20] but I agree that now, after Patrice
  pointed out to me, is completely useless.
 
 I don't understand useless.  It works as intended and I have mutt-1.5.21

my script, i wrote it to handle complex mailto links, but now mutt can
do it well without any external help so I think it is pretty useless
now.



Re: Firefox mailto: links not working correctly

2011-11-24 Thread Patrick Shanahan
* Marco Giusti marco.giu...@gmail.com [11-24-11 15:57]:
 On Thu, Nov 24, 2011 at 03:37:59PM -0500, Patrick Shanahan wrote:
  * Marco Giusti marco.giu...@gmail.com [11-24-11 15:24]:
   
   I think it was for mutt 1.5.[18-20] but I agree that now, after Patrice
   pointed out to me, is completely useless.
  
  I don't understand useless.  It works as intended and I have mutt-1.5.21
 
 my script, i wrote it to handle complex mailto links, but now mutt can
 do it well without any external help so I think it is pretty useless
 now.

Not useless for me.  On my system providing /usr/bin/mutt as the default
mail client for mailto doesn't appear to do anything.  No entries in
/var/log/mail, no reject msgs, but the script works fine.

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Firefox mailto: links not working correctly

2011-11-24 Thread Marcelo Luiz de Laia
On Thu, 24 Nov 2011, Patrice Levesque wrote:
 
 As mutt supports mailto: URLs natively, this suffices:
 
 #!/bin/sh
 exec xterm -e mutt $@

Thank you very much!

I already have been tryied mailtomutt [1] and mailto-mutt [2] and nor
did what your nice script do!

1. http://sourceforge.net/projects/mailtomutt/files/MailtoMutt/

2. 
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=18;filename=mailto-mutt;att=1;bug=406850

-- 
  O___   - Marcelo Luiz de Laia
 c/  /'_ - Diamantina
(*)  \(*)- Minas Gerais
~- Brazil
^- Linux user number 487797


Re: key binding for sidebar folder list

2011-11-24 Thread SK
 I know there are key bindings to go up and down the mailbox folder in
 the sidebar. Is there any way I can make my life a bit more easier by
 binding a key to select a specific mailbox folder. For example ctrl-1
 would select the first inbox, ctrl-2 the second etc.?

 Regards,
 SK


 What you find should probably be a macro like this,

 macro index,pager \C1 sync-mailboxchange-folder=inbox/enter Open 
 =inbox/

 It works for folder changing, but it doesn't show any effect in sidebar.

Thanks. This should work for me.

SK