Michael Tatge sez: } Gregory Seidman ([EMAIL PROTECTED]) muttered: } > I'm doing some tricky things with send-hooks to set the From: and Reply-To: } > fields based on the outgoing email address (mainly for mailing lists). This } > works great, but it means I also need the following two lines: } > } > send-hook '.' 'unmy_hdr Reply-To:' } > send-hook '.' 'unmy_hdr From:' } > } > In addition, I have a similar pair of lines (which come after the lines } > above but before all the send-hooks for mailing lists) which set the From: } > and Reply-To: to a reflector when sending mail outside my organization. [...] } I have send-hooks which set a special From: for some recipients, too. } I also have a default send-hooks unsetting my_hdr From: and I have } $reverse_name set - works like charm. } Please post your setup since I figure it's not mutt to blame here. } } To give you an example: [...]
The crucial difference is the reflector. I have the following: send-hook '((~f gss) | (~f [EMAIL PROTECTED])) (~C @)' 'my_hdr Reply-To: [EMAIL PROTECTED]' send-hook '((~f gss) | (~f [EMAIL PROTECTED])) (~C @)' 'my_hdr From: Gregory Seidman <[EMAIL PROTECTED]>' (Note the the NOSPAM is simply to avoid email from spammers scraping the archives.) This basically says that anything coming from me and being sent to any address with an @ in it (i.e. not on the local cluster) should set the Reply-To and From fields. It looks like the solution may be to set $from to the reflector and use a hook to set From to the local address for local mail. Is there any other way? I'd *really* like a pattern for whether reverse_name has found something or not. } HTH, } Michael --Greg
