imap-fetch-mail not working properly

2010-02-20 Thread Michael Herman

I am back to using Mutt after a bit of a hiatus (mostly because the
e-mail at work was locked down to MAPI only).  I have installed mutt
1.5.20 on my Mac from Macports. I have configured my ^ key to
imap-fetch-mail using a keybinding command in my muttrc but it doesn't
work.  The only way I can refresh my IMAP mail is to change mailboxes
and return to my inbox.  What am I doing wrong?  It's very inconvenient
to have to change mailboxes just to refresh.  

TIA.  
  
--
Michael 


Re: Mutt and multiple imap accounts

2010-02-20 Thread Chuck Smith
On Sat, Feb 20, 2010 at 03:18:14PM +0100, Zeerak Waseem wrote:
> On Sat, 20 Feb 2010 15:10:18 +0100, Chuck Smith
>  wrote:
> >
> >http://miggysmith.wordpress.com/2009/05/02/gmail1/
> >
> >--
> >Chuck Smith
> >
> >>
> >>
> >>--
> >>Zeerak
> 
> I'll bear it in mind, but one of the reasons I went with regular
> imap, is that mutt can handle it without any need for other tools.
> So I'll bear the offline imap in mind, but if it's possible to get
> it working with regular imap then that really would be for the best.

I agree but the added benefit of offlineimap is that first of all you will have 
a local copy of all your mail. Redunancy is always a good idea. Secondly, you 
will not have any of the normal network delays. Everything is stored locally, 
send with msmtp, and synced with the remote server via a cron job.

I personally love it. I know this is not what you had it mind, but create a new 
profile and just give it a whirl. 

--
Chuck Smith 


Re: Mutt and multiple imap accounts

2010-02-20 Thread Zeerak Waseem
On Sat, 20 Feb 2010 15:10:18 +0100, Chuck Smith   
wrote:



On Sat, Feb 20, 2010 at 02:57:41PM +0100, Zeerak Waseem wrote:

Hey,

I'm having some difficulties with mutt and multiple imaps; I've been
trying to set it up for my private mail and my uni mail, but I can't  
seem
to get it to work. I've been following two entries from the wiki  
(mainly)

this (http://wiki.mutt.org/?MuttGuide/UseIMAP) and this
(http://wiki.mutt.org/?UserStory/GmailMultiIMAP), if I purely follow the
first link, then mutt responds with there being no maildir.
If I purely follow the second link then it recognizes the maildir, but  
it

shows that there are no mailboxes.
A finesse to this is that my uni mail has a different ending from the  
imap
server (the other is a gmail account). Could someone help me point out  
the

flaws in my configuration?

# Base hook to reset account variables to known state before activating
new ones
  account-hook . 'unset preconnect imap_user imap_pass  
imap_authenticators;

set ssl_starttls=ask-yes'

  account-hook imaps://imap.gmail.com:993/ 'set imap_user=Gmail-user
imap_pass=Pass'
  folder-hook imaps://imap.gmail.com:993/ 'set
folder=imaps://imap.gmail.com/INBOX record=+Sent from="My Name
"'

  account-hook imaps://uni-imap-server.com/ 'set imap_user=Uni-user
imap_pass=Pass2'
  folder-hook imaps://uni-imap-server.com/ 'set
folder=imaps://uni-imap-server.com/INBOX record=+Sent from="My Name
"'

If I add a folder and a spoolfile line (independent of the hooks) then
this setup works, but would I need to set a spoolfile and a folder for
both accounts? I think I tried it, but I'm not quite certain.

Any help would be appreciated :-)


Have you tried Offlineimap? I am using it with great success. Read here:

http://miggysmith.wordpress.com/2009/05/02/gmail1/

--
Chuck Smith




--
Zeerak


I'll bear it in mind, but one of the reasons I went with regular imap, is  
that mutt can handle it without any need for other tools. So I'll bear the  
offline imap in mind, but if it's possible to get it working with regular  
imap then that really would be for the best.


--
Zeerak


Re: Mutt and multiple imap accounts

2010-02-20 Thread Chuck Smith
On Sat, Feb 20, 2010 at 02:57:41PM +0100, Zeerak Waseem wrote:
> Hey,
> 
> I'm having some difficulties with mutt and multiple imaps; I've been
> trying to set it up for my private mail and my uni mail, but I can't seem
> to get it to work. I've been following two entries from the wiki (mainly)
> this (http://wiki.mutt.org/?MuttGuide/UseIMAP) and this
> (http://wiki.mutt.org/?UserStory/GmailMultiIMAP), if I purely follow the
> first link, then mutt responds with there being no maildir.
> If I purely follow the second link then it recognizes the maildir, but it
> shows that there are no mailboxes.
> A finesse to this is that my uni mail has a different ending from the imap
> server (the other is a gmail account). Could someone help me point out the
> flaws in my configuration?
> 
> # Base hook to reset account variables to known state before activating
> new ones
>   account-hook . 'unset preconnect imap_user imap_pass imap_authenticators;
> set ssl_starttls=ask-yes'
> 
>   account-hook imaps://imap.gmail.com:993/ 'set imap_user=Gmail-user
> imap_pass=Pass'
>   folder-hook imaps://imap.gmail.com:993/ 'set
> folder=imaps://imap.gmail.com/INBOX record=+Sent from="My Name
> "'
> 
>   account-hook imaps://uni-imap-server.com/ 'set imap_user=Uni-user
> imap_pass=Pass2'
>   folder-hook imaps://uni-imap-server.com/ 'set
> folder=imaps://uni-imap-server.com/INBOX record=+Sent from="My Name
> "'
> 
> If I add a folder and a spoolfile line (independent of the hooks) then
> this setup works, but would I need to set a spoolfile and a folder for
> both accounts? I think I tried it, but I'm not quite certain.
> 
> Any help would be appreciated :-)

Have you tried Offlineimap? I am using it with great success. Read here:

http://miggysmith.wordpress.com/2009/05/02/gmail1/

--
Chuck Smith

> 
> 
> -- 
> Zeerak


Mutt and multiple imap accounts

2010-02-20 Thread Zeerak Waseem

Hey,

I'm having some difficulties with mutt and multiple imaps; I've been
trying to set it up for my private mail and my uni mail, but I can't seem
to get it to work. I've been following two entries from the wiki (mainly)
this (http://wiki.mutt.org/?MuttGuide/UseIMAP) and this
(http://wiki.mutt.org/?UserStory/GmailMultiIMAP), if I purely follow the
first link, then mutt responds with there being no maildir.
If I purely follow the second link then it recognizes the maildir, but it
shows that there are no mailboxes.
A finesse to this is that my uni mail has a different ending from the imap
server (the other is a gmail account). Could someone help me point out the
flaws in my configuration?

# Base hook to reset account variables to known state before activating
new ones
  account-hook . 'unset preconnect imap_user imap_pass imap_authenticators;
set ssl_starttls=ask-yes'

  account-hook imaps://imap.gmail.com:993/ 'set imap_user=Gmail-user
imap_pass=Pass'
  folder-hook imaps://imap.gmail.com:993/ 'set
folder=imaps://imap.gmail.com/INBOX record=+Sent from="My Name
"'

  account-hook imaps://uni-imap-server.com/ 'set imap_user=Uni-user
imap_pass=Pass2'
  folder-hook imaps://uni-imap-server.com/ 'set
folder=imaps://uni-imap-server.com/INBOX record=+Sent from="My Name
"'

If I add a folder and a spoolfile line (independent of the hooks) then
this setup works, but would I need to set a spoolfile and a folder for
both accounts? I think I tried it, but I'm not quite certain.

Any help would be appreciated :-)


--
Zeerak


More problems with umlauts *sigh*

2010-02-20 Thread Gary
For some reason although when I send emails containing certain umlauted
characters everything looks fine to me (i.e., in my editor), the
recipient sometimes (or possibly always, I only know because one person
mentioned it) doesn't see those characters correctly. They report that
in emails containing umlauted character (upper or lower case), the
characters appear to be replaced by spaces.

If I send *myself* an email containing upper case an umlauted A, O, or U
then when I receive it, I see garbage (a patterned "box" followed by
something like "~D") in mutt where the character should be, but if I
look at the email via webmail it looks fine. Lower case umlauted
characters look fine in all cases, so this is a little different to
others' experience when reading my emails.

If I open the mailbox in my editor, the affected characters are shown
as, for example:
\304
\344
(i.e. a backslash followed by a number - some character encoding?)

I notice that the Content-Type header contains:
text/plain; charset=iso-8859-1
Should/could that be correct?

I have the following environment variables set:
$ env | grep -E "(LANG|LC_)"
LANG=en_US.UTF-8
LC_CTYPE=de_CH.UTF-8

and within mutt I can see that the charset variable is set to UTF-8 -
':set &charset ?charset' displays 'charset="utf-8"'.
similarly, 'send_charset="us-ascii:iso-8859-1:iso-8859-2:utf-8"'

FWIW -

$ mutt -v
Mutt 1.4.2.2i (2006-07-14)
Copyright (C) 1996-2002 Michael R. Elkins and others.
[...]
System: CYGWIN_NT-5.1 1.7.1(0.218/5/3) (i686) [using ncurses 5.5]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  -USE_SETGID  -USE_DOTLOCK  -DL_STANDALONE
+USE_FCNTL  -USE_FLOCK
+USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL
+HAVE_REGCOMP  +USE_GNU_REGEX
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
+HAVE_PGP  +BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
+ENABLE_NLS  +LOCALES_HACK  -HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
+HAVE_LANGINFO_YESEXPR
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  -HAVE_GETADDRINFO
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/spool/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
(i.e. it is the official Cygwin package; no, I don't know why that
hasn't been upgraded to the official stable version since 2007)