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

2016-05-31 Thread David Levine
Ken wrote: > My only quibble is perhaps that the implementation > is a bit inelegant but on further reflection it's probably the best > that can be done given the current API. If you're referring to the special handling for whom, that doesn't need to migrate to send. A lot of the other code

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

2016-05-31 Thread David Levine
Conrad wrote: > Do you have anything set up to automatically alter From addresses when > replying? Here's the relevant part of my replcomps: %<(nonnull(getmyaddr{to}))From: %(myname) <%(getmyaddr{to})>\ %?(nonnull(getmyaddr{cc}))From: %(myname) <%(getmyaddr{cc})>%> If one of my addresses isn't

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

2016-05-31 Thread Ken Hornstein
>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. For various dumb reasons, replyfilter really only has access to (and can only provide) the message body. If you want to modify the message headers, your only

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

2016-05-31 Thread bergman
In the message dated: Tue, 31 May 2016 13:11:33 -0400, The pithy ruminations from Ken Hornstein on 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

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

2016-05-31 Thread Ken Hornstein
>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

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

2016-05-31 Thread Ken Hornstein
>I added a program, docs/contrib/sendfrom.c, that selects the SMTP >server based on the draft's From: address. > >The source code can be viewed at > >http://git.savannah.gnu.org/cgit/nmh.git/tree/docs/contrib/sendfrom.c I think this is great. My only quibble is perhaps that the

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

2016-05-31 Thread Conrad Hughes
David> I added a program, docs/contrib/sendfrom.c, that selects the SMTP David> server based on the draft's From: address. There have been times I'd've found this incredibly useful, though not so much right at the moment unfortunately. +1! Do you have anything set up to automatically alter From