[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: |
Wed, 11 Mar 2015 02:21:59 -0700 |
[Sorry about that previous post. I was playing with the
postproc script.]
On Wed, 11 Mar 2015 07:26:10 -0000 Ralph Corderoy <address@hidden> sez:
> Hi Bob,
>
> > > if scan -format '%{to} %{cc} %{bcc} %{dcc}' "$draftname" | grep -iqs
> > > @stanford.edu; then
> >
> > Ah, right! Trying too hard to make NMH do all the lifting.
>
> If you do that, you might want to tighten the regexp, e.g.
>
> scan -format '%{to},%{cc},%{bcc},%{dcc},' "$draftname" |
> grep -iq '@stanford\.edu[>,]'
>
> noting the trailing comma in scan's format.
Thanks for that suggestion! My regex is a little more complicated
because I'm trying to catch not only @stanford.edu but hosts of
the form @xyz.stanford.edu, where "xyz" can be some hosts but not
others (apparently there are different anti-spam policies). But I
can use this!
That said, there is one problem with this script: apparently MH
aliases are expanded *after* this script is invoked. I emailed
someone that I have aliased, so that in my draft it is
To: foobar
and in my aliases file it expands based on the entry
foobar: address@hidden
But the script only sees "foobar" and not the expanded address.
Any suggestions?
Bob
- Re: [Nmh-workers] Multi-homed postproc, v2, (continued)
- 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, 2015/03/10
- 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 <=
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
Message not availableRe: [Nmh-workers] Multi-homed postproc, v2, Bob Carragher, 2015/03/12
Re: [Nmh-workers] Multi-homed postproc, v2, Ralph Corderoy, 2015/03/14
Re: [Nmh-workers] Multi-homed postproc, v2, Ken Hornstein, 2015/03/14