On Sun, Feb 11, 2001 at 11:07:24PM +0000, Dave Neary wrote:
> I basically want to have stuff like reply-tos for various mailing lists
> (like this one) set automatically when I'm mailing to them,
You need 'send-hook'. You configure mutt to take some action when a
message matches a given pattern. For example, I have:
send-hook '~C ^ilug' 'my_hdr From: James Raftery <james-ilug at now.ie>'
which acts if the message I'm composing is either To or Cc an address
beginning with 'ilug', and set the From header as shown. You can modify
that to change the Reply-To (though I wouldn't do that, but that's a
> I'd like to set my identity to dneary at eircom.net, rather than
>dave at localhost.localdomain.
send-hook . 'my_hdr From: James Raftery <james at now.ie>'
I have this first in my .muttrc, which is the default address I use.
Then I have the exceptions, such as above, afterwards which make any
changes necessary for a particular message.
To set the SMTP sender, use:
send-hook . 'set sendmail="/usr/sbin/sendmail -oem -oi -f james at now.ie"'
which passes flags to sendmail to construct the appropriate envelope.
James Raftery (JBR54)
"It's somewhere in the Red Hat district" -- A network engineer's
freudian slip when talking about Amsterdam's nightlife at RIPE 38.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!