Hi Bob,
scan -format '%{to},%{cc},%{bcc},%{dcc},' "$draftname" |
grep -iq '@stanford\.edu[>,]'
...
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: foobar(_at_)stanford(_dot_)edu
But the script only sees "foobar" and not the expanded address.
This should give an easier format to grep anyway.
whom "$draftname" |
grep ...
Cheers, Ralph.
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers