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

Re: using mail



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



Reply to: