nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Applying alias file , to Reply-To: and From: components of a draft

2014-11-11 12:34:37
Is there a way, or does somebody have a script, to apply an alias file,
(given by the "Aliasfile:" entry of .mh_profile) to the Reply-To: and From:
components of a draft ?

Depending on what you're asking ... it's either "maybe", or "definitely
not".

Alias processing happens relatively late in post; that's pretty much the only
place where it's done (other than the "ali" command).  Alias processing
ONLY takes place if there's no hostname in the address.  But ... if those
conditions are met, it should happen for all headers that contain email
addresses.  So if your goal is to have a draft like this:

From: outgoing
To: somebody
Reply-to: somewhere

And an alias file that has:

outgoing: Mr Foo Bar <foo(_at_)bar(_dot_)com>
somewhere: Send It Here <here(_at_)bar(_dot_)com>

That works (i just tested it).

If, however, you want an alias to be expanded when you do a 'repl', that's
not possible.

--Ken

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>