[Nmh-workers] Using different transport methods depending on receipient

2018-02-19 Thread Thomas Levine
I usually send emails through my mail provider's SMTP server, but
I sometimes send mail to my local computer. How could I specify that
the manner of sending should depend on the recipient? At present,
since I haven't figured this out, I use a separate MUA when I want to
send local mail.

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] Using different transport methods depending on receipient

2018-02-19 Thread Ralph Corderoy
Hi Thomas,

> I usually send emails through my mail provider's SMTP server, but I
> sometimes send mail to my local computer. How could I specify that the
> manner of sending should depend on the recipient?

Is `sendfrom' in send(1) any help?  It's sender, not recipient, but
perhaps you can alter that too, or it's changing anyway?

Otherwise, is there a locale MTA that should do the routing?

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] Using different transport methods depending on receipient

2018-02-19 Thread Ken Hornstein
>I usually send emails through my mail provider's SMTP server, but
>I sometimes send mail to my local computer. How could I specify that
>the manner of sending should depend on the recipient? At present,
>since I haven't figured this out, I use a separate MUA when I want to
>send local mail.

Ralph pointed you to 'sendfrom' support, but that's only useful for
changing post(8) swiches based on the recipient.  But you can write your
own postproc.  I use my postproc to change the switches to post(8) based
on my From: address (I did that before sendfrom support was written).  A
sample based on mine is in "$(prefix)/doc/nmh/contrib/localpostproc" or
in "nmh/docs/contrib/localpostproc" in the source distribution.

The way that works is it uses scan(1) to interrogate the draft file and
then has a case statement based on the value of the "From:" header; it
should be trivial to change it so it's based on the value of the "To:"
header.  If you have questions, just post them to the mailing list!

--Ken

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] Using different transport methods depending on receipient

2018-02-19 Thread Ken Hornstein
>Ralph pointed you to 'sendfrom' support, but that's only useful for
>changing post(8) swiches based on the recipient.

Sigh.  I meant to say, "changing post(8) switches based on the SENDER".

--Ken

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] Blockers for 1.7.1.

2018-02-19 Thread David Levine
Ken wrote:

> But even though we are using GNU iconv, it turns out that in the old
> code iconv_elides_question_marks was set to 0.

Right.  I just committed 8ed8876c6, which basically restores the old
behavior of the test in that respect.  It works on Mac OS X.  On all
platforms, it skips the tests that rely on iconv if it's not enabled.

David

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] Blockers for 1.7.1.

2018-02-19 Thread Ken Hornstein
>> But even though we are using GNU iconv, it turns out that in the old
>> code iconv_elides_question_marks was set to 0.
>
>Right.  I just committed 8ed8876c6, which basically restores the old
>behavior of the test in that respect.  It works on Mac OS X.  On all
>platforms, it skips the tests that rely on iconv if it's not enabled.

Great!  Okay, that passes all of the tests now, and I've cherry-picked the
relevant changes to the 1.7 release branch.

Should I just spin another 1.7.1 release candidate?

--Ken

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] Blockers for 1.7.1.

2018-02-19 Thread David Levine
Ken wrote:

> Should I just spin another 1.7.1 release candidate?

Please!

David

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers