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

[Mutt] #3014: mutt-1.4.2.3i: Settings taken from wrong account-hook entry



#3014: mutt-1.4.2.3i: Settings taken from wrong account-hook entry

 If I have multiple IMAP mailboxes in my .muttrc, mutt
 uses only the account-hook for the last mailbox appearing
 in .muttrc.

 For example, mutt uses only the "from" address corresponding
 to "foo.bar.com", regardless which account in the following
 .muttrc I connect to:

 {{{
 # experimental mutt initialization file

 color indicator  black  yellow
 color normal     black  white
 color index      black  cyan .

 set delete=ask-no
 set move=no
 set certificate_file=~/work/.mutt/certificates
 set sort=reverse-date-sent

 # IMAP settings
 #
 mailboxes \
     /proj/sysadmin/mail/gilmap \
     imap://PaulGBoulder@xxxxxxxxxxxx \
     imaps://pg187608@xxxxxxxxxxxxxxxxx \
     imap://wombat@xxxxxxxxxxx \

 account-hook . 'unset imap_user imap_pass from record'

 account-hook mail-amer.sun.com \
     'set from=Paul.Gilmartin@xxxxxxx \
          record="imaps://pg187608@xxxxxxxxxxxxxxxxx/Sent Messages"'

 account-hook foo.bar.com \
     'set from=gilmap@xxxxxxxxxxxxxxxx \
          record="/home/normau/gilmap/Mail/sent"

 account-hook imap.aim.com \
     'set from=PaulGBoulder@xxxxxxx \
      record="imap://PaulGBoulder@xxxxxxxxxxxx/Sent Messages"'
 gilmap@tolvar:277$
 }}}

 Thanks,[[BR]]

 gil

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3014>