On Sun, Sep 29, 2002 at 01:46:28PM -0400, Kurt Lieber wrote: >I'm setting up mutt for the first time. I have two separate accounts, >both on the same IMAP server -- I want to set default From: addresses for >each of those accounts. My first question is; do I use account-hook or >folder-hook?
I use folder-hook as my sending is generally related to what I'm reading or doing. > >My next question; I've tried it using both, and while I can *check* mail >just fine, the From header is not displayed correctly in either account. >My relevant portions of .muttrc: > >#set some default locations >set spoolfile=imap:[EMAIL PROTECTED]/INBOX >set folder=imap:[EMAIL PROTECTED]/ >set record=imap:[EMAIL PROTECTED]/INBOX.Sent >set postponed=imap:[EMAIL PROTECTED]/INBOX.Drafts >my_hdr From: Kurt Lieber <[EMAIL PROTECTED]> > Try 'set from="[EMAIL PROTECTED]' >account-hook . 'unset spoolfile folder record postponed hostname >pgp_autosign; unmy_hdr From:' > >account-hook imap:[EMAIL PROTECTED]/ \ > 'set spoolfile=imap:[EMAIL PROTECTED]/INBOX; \ > set folder=imap:[EMAIL PROTECTED]/; \ > set record=imap:[EMAIL PROTECTED]/INBOX.Sent; \ > set postponed=imap:[EMAIL PROTECTED]/INBOX.Drafts; \ > my_hdr From: Kurt Lieber <[EMAIL PROTECTED]>; \ same thing here- 'set from="[EMAIL PROTECTED]"' > HTH. -- Michael Herman
msg31320/pgp00000.pgp
Description: PGP signature