On Wed, Dec 13, 2000 at 06:47:43PM +0100, Jakub Klausa wrote:
> I want my mutt to use different "From: " field values depending on the "To:
> " field. I managed to get it almost to work with the send-hook, but the
> problem is that the "From: " field changed with "my_hdr" directive doesn't
> get changed back to the default after sending the mail.
>
> For example i want all my mail to be send with a "From: [EMAIL PROTECTED]", but when i
> send to "To: [EMAIL PROTECTED]" i want the "From: " to be "From: [EMAIL PROTECTED]". It wokrs fine
> untill i send the mail to [EMAIL PROTECTED] Then the "From: " is changed permanently to
> [EMAIL PROTECTED] How do i handle this to change "From: " back to [EMAIL PROTECTED] after sending
> the mail to [EMAIL PROTECTED]?
You need a default hook to reset it:
send-hook ~A my_hdr from: [EMAIL PROTECTED]
send-hook ~[EMAIL PROTECTED] my_hdr from: [EMAIL PROTECTED]
me