nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] (n)mh tip of the day


From: Kevin Cosgrove
Subject: Re: [Nmh-workers] (n)mh tip of the day
Date: Tue, 20 Oct 2015 11:50:42 -0700

On 20 October 2015 at 13:56, Ken Hornstein <address@hidden> wrote:

> I just came up with this, and I thought it might be useful to people.
> 
> I put in my components file the following line:
> 
> %<{from}%?(getenv MH_FROM)%|%(void(localmbox))%>%(void(width))%(putaddr From: 
> )
> 
> That lets me, in priority order, set my From: header as the following:
> 
> - The -from switch to comp(1)
> - The value of the MH_FROM environment variable
> - Nmh's idea of my local mailbox (configured via Local-Mailbox, or if
>   that's missing taking a guess based on the local username and hostname).
> 
> I have a few shell aliases which set MH_FROM to useful values.  I find
> myself juggling multiple identities more and more, and I finally got tired
> of editing my From: header by hand.  That's not the only piece of the
> puzzle, though ... I have a postproc which submits the email to the
> 'correct' SMTP server and my replcomps has a number of contortions to
> choose the correct From: header (that works actually surprisingly well
> in practice).

I'd never even thought to attempt what you made work.  Quite 
interesting.

> As a question to everyone else: how do others who juggle multiple email
> identities make it work?

I just edit From: which I don't do very often, mostly when I'm 
replying to CraigsList stuff.

Somewhat related, I create new email aliases for each vendor that 
asks me for an email, e.g. address@hidden  If localstore gets 
hacked, then my personal email doesn't suffer the consequences, as I 
can just comment out "localstore" in my /etc/aliases for a while.  Of a 
hundred or more vendor aliases I have only two have spammed me: Qwest
and PetMeds.  In both cases I got hardcopy and softcopy spam prior to 
getting the product/service I ordered.  Qwest spelled my name wrong, 
and I could follow the chain of parties that had received my contact
info through Qwest.  Maybe the /etc/aliases trick will work for 
others?

Cheerio....


--
Kevin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]