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.
> 
> Given that setup, essentially every mail to any address outside my
> organization gets a custom From: and Reply-To: field. The problem is that I
> want reverse_name to supersede all send-hooks. If I send something to a
> mailing list with a particular address and receive a personal reply from
> someone, I want my reply to be sent out with the same address I use to send
> to the mailing list. This is what reverse_name is all about. Unfortunately,
> the person I am sending to will almost certainly be outside my organization
> and, therefore, match the send-hooks that set the fields to the reflector,
> overriding what reverse_name would have done for me.
> 
> I can't find anything in the documentation to fix this. I suppose the
> simplest thing would be a ~something which would match if reverse_name had
> set something, but no such thing seems to exist.

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:

set alternates = "(Michael.Tatge|michael_tatge)"
set realname="Michael Tatge"
set from="[EMAIL PROTECTED]"
set use_from                            # create From: Header
set reverse_name                        # use given To: as From: when
                                        # replying
set envelope_from

## send-hooks
send-hook . 'unmy_hdr From:'

# If sending to localhost or LAN:
send-hook '(~t knecht | ~t mydomain | ~t localhost)' \
  'my_hdr From: Michael Tatge <[EMAIL PROTECTED]>'

HTH,

Michael
-- 
"We all know Linux is great...it does infinite loops in 5 seconds."
(Linus Torvalds about the superiority of Linux on the Amterdam
Linux Symposium)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key

Reply via email to