LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Setting user info in Mutt

[ILUG] Setting user info in Mutt

James Raftery james-ilug at now.ie
Mon Feb 12 13:56:00 GMT 2001


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
different argument)

> I'd like to set my identity to dneary at eircom.net, rather than 
> dave at localhost.localdomain.

Again, send-hook.

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
-- 
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.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell