<<< Date Index >>>     <<< Thread Index >>>

Re: An urgent hook question



* On Wed, Jan 25, 2006 Daniel Hertrich (daniel.hertrich@xxxxxx) muttered:
> Could someone please let me know what exact hook I need to let mutt use an
> alternate from address (altfrom@xxxxxxxx) if I send an email to specific
> mailing list addresses?
> 
> If To: = 'one of the "subscribe"s' then set From: altfrom@xxxxxxxx

Depending on your setup you would use a folder- or send-hook.

send-hook . 'unmy_hdr From:'
send-hook ~l 'my_hdr From: Daniel Hertrich <altfrom@xxxxxxxx>'

~l              message is addressed to a known mailing list
so subscribed and lists

or 

folder-hook . 'set from=<default from>'
folder-hook <a regexp matching all lists or a specific one> \
            'set from=altfrom@xxxxxxxx'

HTH,

Michael
-- 
BOFH excuse #281:

The co-locator cannot verify the frame-relay gateway to the ISDN server.

PGP-Key-ID: 0xDC1A44DD
Jabber:     init[0]@amessage.de