Ticket #3014 (closed defect: invalid)

Opened 11 months ago

Last modified 7 months ago

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

Reported by: Paul Gilmartin Owned by: brendan
Priority: minor Milestone:
Component: IMAP Version:
Keywords: Cc:

Description

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@imap.aim.com \
    imaps://pg187608@mail-amer.sun.com \
    imap://wombat@foo.bar.com \

account-hook . 'unset imap_user imap_pass from record'

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

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

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

Thanks,

gil

Change History

Changed 11 months ago by Rado S

=- Mutt wrote on Sat 12.Jan'08 at 19:23:50 -0000 -=

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

You've certainly misunderstood the use for account-hook vs.
folder-hook, rtfm again, see also
	http://WIKI.mutt.org/?DebugConfig

If this solves it for you, please close this report.

Changed 7 months ago by brendan

  • status changed from new to closed
  • resolution set to invalid

Uses account-hooks where folder-hooks are required. No response from submitter.

Note: See TracTickets for help on using tickets.