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]?
>
Use a default sendhook. E.g.:
sendhook . my_hdr "From: [EMAIL PROTECTED]";
I think it also needs to go before your other sendhooks that my_hdr
From. And you might want to check the syntax in the manual. I'm
running on _very_ little sleep. You also might consider setting from
instead of using my_hdr. See the manual.
--
Luke