Package: mutt Version: 1.5.9-2
Right now I have two external mailboxes; one is imaps and the other is pop. What I want to do is change my From: header to match the address that each mailbox corresponds to. It doesn't work with pop. Here are the various .muttrc lines I've tried, and their results: VARIATION 1: --- .muttrc --- account-hook . "unmy_hdr From:" account-hook ucdavis "my_hdr From: davisaddress" account-hook iradeon "my_hdr From: iradeonaddress" --- 8< --- In this setup, my davisaddress is *always* used, even before opening either mailbox. [1] VARIATION 2: --- .muttrc --- account-hook iradeon "unmy_hdr From:; my_hdr From: iradeonaddress" --- 8< --- In this setup, I never get a From: line. VARIATION 3: --- .muttrc --- account-hook iradeon "unmy_hdr From:; my_hdr \"From: iradeonaddress\"" --- 8< --- In this setup, I have no From: header before opening the mailbox, but after opening it, I get the following behavior, which I can best explain by detailing the steps taken to observe it: 1. run command 'mail' (bound to 'm' by default) 2. compose the letter, then save and exit from text editor At this point, in the 'Compose' screen, I see nothing in the 'From:' field. 3. run command 'edit-headers' (bound to 'E' by default) Now I see all the headers, which look like this: --- mail message --- To: [EMAIL PROTECTED] Cc: Bcc: Subject: account-hook doesn't set header with my_hdr "From: iradeonaddress" message body --- 8< --- What *should* happen, in VARIATION 1, is that I have no From: header before opening an external mailbox, and then after opening one, depending which I am in I should have a different From: header. uname -a: Linux blaze 2.6.12.3 #1 Mon Jul 25 16:35:32 PDT 2005 i686 GNU/Linux dpkg -s libc6|grep '^Version': 2.3.2.ds1-22 Sincerely, -Bryan -- Bryan Richter System Administrator -- iRadeon [1] Perhaps another bug should be "header is set even before opening mailbox", since I would expect the account-hook commands to only be run once the account is accessed... but I'll leave that for later. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

