"David W. Tamkin" <dattier(_at_)mcs(_dot_)net> writes:
Stan wrote,
| Maybe I'm confused, but it seems to me that the header lines are
| concatenated for "H ?? ..." which means that the latter version
| won't do it either.
Aargh. So it requires not only an external process but also a temporary
file to save the head in so that it can be egrepped? YECCH! (And that means
a second external process to rm the temporary file.)
I think you're correct that this can't be done from inside procmail.
However, doesn't this work?
oSM=$SHELLMETAS SHELLMETAS
:0 hcw
| egrep -q '^[ ]+$'
SHELLMETAS=$oSM
:0 a
{ LOG = "Header contained empty continuation line$NL" }
(BSDish non-POSIX systems should use -s instead of -q, though it's fine
if to just leave them off.)
Philip Guenther