[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using mail



On Mon, Nov 29, 2004 at 09:44:21PM +0000, Richard Lyons wrote:
> On Mon, Nov 29, 2004 at 07:31:56AM -0600, Hugo Vanwoerkom wrote:
> > Sam Watkins wrote:
> > >On Sun, Nov 28, 2004 at 11:48:57AM -0600, Hugo Vanwoerkom wrote:
> > >
> > >>When I use: mail <inet.addrs> it sends mail to that address with the 
> > >>options that I have set via dpkg-reconfigure exim4-config.
> > >>
> > >>But it sends it from "root" (when I am logged on as root). "root" of 
> > >>course does not exist at that inet.addrs.
> > >>
> > >>How do I with an option not send from "root" as root but from 
> > >>"whomever" at inet.addrs?
> > >
> > >
> > >You can do something like:
> > >
> > >mail -a 'From: some@bogus.email.address' recipient@wherever.net
> > >
> > >The -a option adds an arbitrary mail header, see mail(1)
> > >
> > >I tested this, it seems to work.
> > 
> > Thanks! That's it!
> 
> If you have in your ~/.muttrc
> 
>     my_hdr From: mynormal@email.tld
> 
> and
>     set edit_headers
> 
> then you can simply edit the From: header on the occasions that you want
> to -- assuming they are not too frequent.
> 
> Just another thought.
> 
> -- 
> richard
> 
> 
Hi folks, 
here is something I have in my muttrc:

send-hook '~C debian-user' 'my_hdr From: kmark+debian-user@pipeline.com'
send-hook '~C debian-user' 'my_hdr Return-Path: kmark+debian-user@pipeline.com'

so when, I hit 'r',  mutt sets these automatically.
HTH
=Kev

-- 
counter.li.org #238656 -- goto counter.li.org and be counted!

        (__)
        (oo)
  /------\/
 / |    ||
*  /\---/\
   ~~   ~~
...."Have you mooed today?"...

Attachment: signature.asc
Description: Digital signature


Reply to: