Nigel --
...and then [EMAIL PROTECTED] said...
% Hi,
%
% I would like to be able to use a different "from" address for some emails
% I send.
%
% This is because I have 2 email addresses, home and work.
Makes sense. Not so tough.
%
% Sometimes I send email from home to my work collegues, I would like these
% emails to be from my work address. So as not to confuse my collegues and
% give the impression I'm at work when really I'm at home :)
Tee hee :-)
%
% How would I configure mutt to select the correct from address based on a
% condition. And what condition could I use?
Check out the send-hook and my_hdr commands; they do exactly what
you want.
%
% I have set up a mailbox just for my work emails, could mutt detect that I'm
% viewing a work mailbox when I hit the "m" key, and set the from address to
% my work email address?
Sure; you could also use a folder-hook to match the folder instead of to
whom you're sending.
%
% Or is there a better condition that could be checked, like the presence of
% my works domain name in the to or cc fields maybe?
Yep. See the manual; you're right on track.
%
% Thanks,
HTH & HAND
%
% Nigel Tamplin.
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001. There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*
PGP signature