package mutt
close 322040
thanks

Hello Bryan, and thanks for the report.

 On Monday, August 8, 2005 at 3:12:35 PM -0700, Bryan Richter wrote:

> 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.

    If I understand correctly, you are misusing both account-hooks and
"my_hdr From:". For your needs you should use folder-hooks and $from.
Try something like that:

| reset use_from                        # it's unset by Debian /etc/Muttrc
| set [EMAIL PROTECTED]
| set realname="Bryan Richter"
| folder-hook . "set [EMAIL PROTECTED]"
| folder-hook ucdavis "set from=davisaddress"
| folder-hook iradeon "set from=iradeonaddress"

    Though there might exist a more Debianized way to set a default
address: Hopefully a guru will tell us. And the regexes are dangerously
too lax: Bad example.


> I get the following behavior [snip]

    Well, account-hooks are triggered when they are needed (access,
reconnect, check for new mail of other folders, ...), at not really user
predictable moments. Apparently inconsistent behaviours may seem to be
observed. I use account-hooks only for $pop_authenticators, $pop_pass,
$imap_pass, and such, and it works very well.


Bye!    Alain.
-- 
Mutt muttrc tip to send mails in best adapted first necessary and sufficient
charset (version for East Europe Latin-2/CP-852/CP-1250 terminal users):
set 
send_charset="us-ascii:iso-8859-1:iso-8859-15:windows-1252:iso-8859-2:windows-1250:utf-8"


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to