[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Multi-homed postproc, v2
From: |
Bob Carragher |
Subject: |
Re: [Nmh-workers] Multi-homed postproc, v2 |
Date: |
Tue, 10 Mar 2015 14:31:21 -0700 |
On Tue, 10 Mar 2015 10:31:19 -0400 Ken Hornstein <address@hidden> sez:
> >Thanks for the proposed localpostproc, Ken!
> >looping mechanism -- or, at least, a "there-exists" mechanism.
> >I need something that checks the recipients' host(s), which
> >means potentially checking more than 1 string. The pseudo-code
> >would be roughly
> >
> > if @.*stanford.edu in {%(host{to}), %(host{cc}), %(host{bcc})}
> > postflags=""
> > else
> > postflags="-server smtp.gmail.com -port submission -tls -sasl -user
> > dnc2dnc"
>
> I think you're overthinking it. I used %(host), because I
> wanted to extract out something that would be in a case
> statement, but you have the entire power of the shell; you
> could easily do something like this:
>
> if scan -format '%{to} %{cc} %{bcc} %{dcc}' "$draftname" | grep -iqs
> @stanford.edu; then
> ... set for stanford ...
> else
> ... set for everything else ...
> fi
>
> Well, you might want to change that grep, but you get the idea.
> I know, the issue with things like %(host) only working on one
> address is a pain; I am unsure how to solve that.
Ah, right! Trying too hard to make NMH do all the lifting.
Thanks for splashing some cold shell water on me! B-)
Bob
- Re: [Nmh-workers] Multi-homed postproc, v2, (continued)
- Re: [Nmh-workers] Multi-homed postproc, v2, Ralph Corderoy, 2015/03/06
- Re: [Nmh-workers] Multi-homed postproc, v2, Ken Hornstein, 2015/03/06
- Re: [Nmh-workers] Multi-homed postproc, v2, Ralph Corderoy, 2015/03/06
- Message not available
- Re: [Nmh-workers] Multi-homed postproc, v2, Bob Carragher, 2015/03/10
- Re: [Nmh-workers] Multi-homed postproc, v2, Ken Hornstein, 2015/03/10
- Message not available
- Re: [Nmh-workers] Multi-homed postproc, v2, Bob Carragher, 2015/03/10
- Message not available
- Re: [Nmh-workers] Multi-homed postproc, v2, Bob Carragher, 2015/03/10
Message not available
- Re: [Nmh-workers] Multi-homed postproc, v2, Bob Carragher, 2015/03/10
- Re: [Nmh-workers] Multi-homed postproc, v2, Ken Hornstein, 2015/03/10
- Message not available
- Re: [Nmh-workers] Multi-homed postproc, v2,
Bob Carragher <=
- Re: [Nmh-workers] Multi-homed postproc, v2, Ralph Corderoy, 2015/03/11
- Message not available
- Re: [Nmh-workers] Multi-homed postproc, v2, Bob Carragher, 2015/03/11
Message not availableRe: [Nmh-workers] Multi-homed postproc, v2, Bob Carragher, 2015/03/11
Re: [Nmh-workers] Multi-homed postproc, v2, Ralph Corderoy, 2015/03/11
Message not availableRe: [Nmh-workers] Multi-homed postproc, v2, Bob Carragher, 2015/03/11
Re: [Nmh-workers] Multi-homed postproc, v2, Ken Hornstein, 2015/03/11
Message not availableRe: [Nmh-workers] Multi-homed postproc, v2, Bob Carragher, 2015/03/11
Re: [Nmh-workers] Multi-homed postproc, v2, Ralph Corderoy, 2015/03/12
Re: [Nmh-workers] Multi-homed postproc, v2, Ken Hornstein, 2015/03/12
Message not availableRe: [Nmh-workers] Multi-homed postproc, v2, Bob Carragher, 2015/03/12