On Mon, Mar 26, 2012 at 05:06:45PM +0200, Jostein Gogstad wrote:
> Jostein Gogstad wrote, on Fri, Mar 09, 2012 at 04:46:22PM +0100:
> > send-hook . 'my_hdr From: Incorrect from <incorr...@example.com>'
> > reply-hook . 'my_hdr From: Correct from <corr...@example.com>'
> > 
> > The send hook always kicks in whenever I reply to a mail. If I drop the
> > send-hook, everything works fine.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565236
http://dev.mutt.org/trac/ticket/3427

> So, I figured from [1] that send-hooks are in fact applied after reply-hooks.

See above links.

> My problem still persist though. If anyone have a solution to the following
> scenario I'd be overwhelmed:
> 1) Fetchmail gathers mail from gmail and corporate mail and puts in 
> $spoolfile.
> 2) I want to use my corporate e-mail address whenever I reply to mail sent to
> m...@mycompany.com, and whenever I send mail to some...@mycompany.com.
> 3) I want to my gmail address whenever the situation in 2) is not the case.

Why not employ filtering rules in your mda, to filter the messages into
different folders. 

I only use one email address, so I'm not to sure about using 2 or more
but I think you might need to look at mutt profiles.


> [1] http://durak.org/sean/pubs/software/mutt/configuration.html#send-hook

-- 
"Religion is excellent stuff for keeping common people quiet."
   -- Napoleon Bonaparte

Reply via email to