* steve <[email protected]> [03-17-10 04:53]: > I receive an email with: > > From: [email protected] > To: [email protected] > > (I don't have any special settings for [email protected]) > > I hit 'r' and I get: > > From: [email protected] > To: [email protected] > > > but I would like to have: > > From: [email protected] > To: [email protected] > > > How can I do this? Should I use a reply-hook? reverse_name? I'm a bit > confused here.
I would choose, send-hook, but from TFM:
19. Change Settings Based Upon Message Recipients
Usage:
reply-hook [!]pattern command
send-hook [!]pattern command
send2-hook [!]pattern command
These commands can be used to execute arbitrary configuration commands
based upon recipients of the message. pattern is used to match the
message, see Message Matching in Hooks for details. command is executed
when pattern matches.
reply-hook is matched against the message you are replying_to, instead
of the message you are sending. send-hook is matched against all
messages, both new and replies.
Note
reply-hooks are matched before the send-hook, regardless of the order
specified in the user's configuration file.
send2-hook is matched every time a message is changed, either by
editing it, or by using the compose menu to change its recipients or
subject. send2-hook is executed after send-hook, and can, e.g., be used
to set parameters such as the $sendmail variable depending on the
message's sender address.
For each type of send-hook or reply-hook, when multiple matches occur,
commands are executed in the order they are specified in the .muttrc
(for that type of hook).
Example: send-hook mutt "set mime_forward signature=''"
Another typical use for this command is to change the values of the
$attribution, $signature and $locale variables in order to change the
language of the attributions and signatures based upon the recipients.
Note
send-hook's are only executed once after getting the initial list of
recipients. Adding a recipient after replying or editing the message
will not cause any send-hook to be executed, similarily if $autoedit is
set (as then the initial list of recipients is empty). Also note that
my_hdr commands which modify recipient headers, or the message's
subject, don't have any effect on the current message when executed
from a send-hook.
--
Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535 @ http://counter.li.org
