nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] contrib to select mail server based on From: in draft

2016-05-31 13:03:07
In the message dated: Tue, 31 May 2016 13:11:33 -0400,
The pithy ruminations from Ken Hornstein on 
<Re: [Nmh-workers] contrib to select mail server based on From: in draft> were:
=> >Do you have anything set up to automatically alter From addresses when
=> >replying?  I've a hacked-up editor script that alters them according to
=> >various things, such as the originator or recipient address.  Maybe
=> >there's a more nmh-y way to do that nowadays though..?
=> 
=> We've discussed this on the mailing list in the past, although I guess
=> we never sat down and spelled out the steps.  But yes, I do this.

I do this as well, since ~2007.

=> 
=> The magic is all in replcomps; basically, that needs to be modified so

Same here, plus a customized "repl" wrapper script that sets the Fcc:,
Reply-To:, and signature based on the "From" address.

I'd be glad to share my perl wrapper script again, but I'm sure that there are
more integrated, cleaner solutions, such as replyfilter.

Mark

=> the "right" header is chosen based on some criteria in the original message.
=> Here's part of what I use, to give you an idea:
=> 
=> %<{delivered-to}%<(match kenh(_at_)pobox(_dot_)com)\
=> From: Ken Hornstein <kenh(_at_)pobox(_dot_)com>
=> %|\
=> From: Ken Hornstein <kenh@work.address>
=> %>\
=> 
=> That means, "If the Delivered-To header matches "kenh(_at_)pobox(_dot_)com", 
put
=> a From header of kenh(_at_)pobox(_dot_)com, otherwise use my work address.  
This
=> assumes you have some mechanism to decide on the From header based on
=> the message headers, and that the mh-profile language is powerful enough
=> to make use of it.
=> 
=> --Ken
=> 
=> _______________________________________________
=> Nmh-workers mailing list
=> Nmh-workers(_at_)nongnu(_dot_)org
=> https://lists.nongnu.org/mailman/listinfo/nmh-workers
=> 
-- 
Mark Bergman    Biker, Rock Climber, SCUBA Diver, Unix mechanic, IATSE #1 
Stagehand
'94 Yamaha GTS1000A^2
bergman(_at_)panix(_dot_)com                            
https://www.flickr.com/photos/rmsppu

http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=bergman%40panix.com

I want a newsgroup with a infinite S/N ratio! Now taking CFV on:
rec.motorcycles.stagehands.pet-bird-owners.pinballers.unix-supporters
15+ So Far--Want to join? Check out: http://www.panix.com/~bergman 

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