procmail
[Top] [All Lists]

spotting empty continuation lines

2000-02-25 11:44:38
Sometimes I'll receive a message with a header field where a continuation
line is empty except for the indenting whitespace.  I'd like to catch those
in a recipe.

The problem is that the newline before a properly indented continuation line
in a header won't match procmail's $ or ^ (usually that's a good thing).

  * H ?? ? egrep '^[    ]+$' # egrep -x '[      ]+' if it groks -x

will do it, but is there a way within procmail without the external program?

<Prev in Thread] Current Thread [Next in Thread>