<<< Date Index >>>     <<< Thread Index >>>

problem setting up mutt for gmail imap, multiple accounts



Hi there,

I'm new to mutt (and to linux) and I want to use Mutt to access my gmail
accounts.  I am happy to receive mail from gmail and send mail through
gmail, without it going through a local mail spool thingy.

I've been using some of the guides for setting up gmail, but I'm getting
slightly confused, and it's not working too well.  Attached is
my .muttrc, and the debug log level 2.

I am using Ubuntu Hardy Heron and I installed mutt through the synaptic
package manager.

Any help appreciated!
set folder=~/Mail
set editor="vi"

# 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'

folder-hook 'imaps://.*imap.gmail.com' unset record

account-hook imaps://user1@xxxxxxxxxxxxxx/ 'set imap_user=user1@xxxxxxxxx 
imap_pass=<passwd>'
folder-hook imaps://user1@xxxxxxxxxxxxxx/ 'set 
smtp_url="smtps://user1@xxxxxxxxxxxxxx"'

account-hook imaps://user2@xxxxxxxxxxxxxx/ 'set imap_user=user2@xxxxxxxxx 
imap_pass=<passwd> imap_authenticators=digest-md5'
folder-hook imaps://user2@xxxxxxxxxxxxxx/ 'set 
smtp_url="smtps://user2@xxxxxxxxxxxxxx"'

account-hook imaps://user3@xxxxxxxxxxxxxx/ 'set imap_user=user3@xxxxxxxxx 
imap_pass=<passwd> imap_authenticators=digest-md5'
folder-hook imaps://user3@xxxxxxxxxxxxxx/ 'set 
smtp_url="smtps://user3@xxxxxxxxxxxxxx"'

set folder="imaps://user1@xxxxxxxxxxxxxx"
mailboxes "=INBOX"

set folder="imaps://user2@xxxxxxxxxxxxxx"
mailboxes "=INBOX"

set folder="imaps://user3@xxxxxxxxxxxxxx"
mailboxes "=INBOX"

unset folder

unset imap_passive

set ssl_starttls=yes
set imap_check_subscribed
set mail_check=60
set header_cache=~/.hcache
set net_inc=5
Mutt 1.5.17+20080114 started at Sat Aug  2 13:04:08 2008
.
Debugging at level 2.

Reading configuration file '/etc/Muttrc'.
Reading configuration file '/usr/lib/mutt/source-muttrc.d|'.
Reading configuration file '/etc/Muttrc.d/charset.rc'.
Reading configuration file '/etc/Muttrc.d/colors.rc'.
Reading configuration file '/etc/Muttrc.d/compressed-folders.rc'.
Reading configuration file '/etc/Muttrc.d/gpg.rc'.
Reading configuration file '/etc/Muttrc.d/smime-paths.rc'.
Reading configuration file '/home/lusule/.muttrc'.
mx_get_magic(): unable to stat /var/mail/lusule: No such file or directory 
(errno 2).
/var/mail/lusule: No such file or directory (errno = 2)
/var/mail/lusule: No such file or directory (errno = 2)
Connected to imap.gmail.com:993 on fd=5
5< * OK Gimap ready for requests from 82.152.198.156 l40if1090965ugc.0
5> a0000 CAPABILITY
5< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA XLIST CHILDREN XYZZY
5< a0000 OK Thats all she wrote! l40if1090965ugc.0
imap_authenticate: Using any available method.
local ip: 192.168.0.3;47819, remote ip:66.249.93.111;993
External SSF: 128
External authentication name: bryony.vanspaendonck
SASL: No worthy mechs found
imap_auth_sasl: IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA XLIST CHILDREN XYZZY 
unavailable
Sending LOGIN command for bryony.vanspaendonck...
5< a0001 NO [ALERT] Invalid credentials (Failure)
Login failed.
Connected to imap.gmail.com:993 on fd=6
6< * OK Gimap ready for requests from 82.152.198.156 p10if2691545gvf.0
6> a0000 CAPABILITY
6< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA XLIST CHILDREN XYZZY
6< a0000 OK Thats all she wrote! p10if2691545gvf.0
imap_authenticate: Trying method digest-md5
local ip: 192.168.0.3;57890, remote ip:216.239.59.109;993
External SSF: 128
External authentication name: luni.toons
6> a0001 AUTHENTICATE DIGEST-MD5
6< a0001 BAD TODO (not supported yet) p10if2691545gvf.0
imap_auth_sasl: digest-md5 failed
No authenticators available
Connected to imap.gmail.com:993 on fd=7
7< * OK Gimap ready for requests from 82.152.198.156 r38if2807157ugc.0
7> a0000 CAPABILITY
7< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA XLIST CHILDREN XYZZY
7< a0000 OK Thats all she wrote! r38if2807157ugc.0
imap_authenticate: Trying method digest-md5
local ip: 192.168.0.3;47821, remote ip:66.249.93.111;993
External SSF: 128
External authentication name: lusule.sinistral
7> a0001 AUTHENTICATE DIGEST-MD5
7< a0001 BAD TODO (not supported yet) r38if2807157ugc.0
imap_auth_sasl: digest-md5 failed
No authenticators available
7> a0002 LOGOUT
7< * BYE Logout Requested r38if2807157ugc.0
Handling BYE
7< a0002 OK Quoth the raven, nevermore... r38if2807157ugc.0
6> a0002 LOGOUT
6< * BYE Logout Requested p10if2691545gvf.0
Handling BYE
6< a0002 OK Quoth the raven, nevermore... p10if2691545gvf.0
5> a0002 LOGOUT
5< * BYE Logout Requested l40if1090965ugc.0
Handling BYE
5< a0002 OK Quoth the raven, nevermore... l40if1090965ugc.0