Excerpts from mail: (11-Jun-98) Matching 6 lines in the body, in order by
Timothy J Luoma
SO I would like to match this iff it comes after one blank line at the top
of the message:
Authenticated sender is
Subject:
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Assuming that the order never changes, here is how I would do it:
:0
* B ?? ^^($)*(Authenticated sender is.*$)\
(Subject:.*$)\
(Mime-Version: 1\.0$)\
(Content-Type: text/plain; charset="us-ascii"$)\
(Content-Transfer-Encoding: 7bit$)
| formail -A"X-SpamChecker: 5-fold-spam-match"
My belief is that this is more efficient (especially for long messages) than
doing a a body search for five separate strings.