Author: "Edward J. Sabol"
<sabol(_at_)alderaan(_dot_)gsfc(_dot_)nasa(_dot_)gov>
Original-Date: Fri, 12 Jun 1998 11:15:08 -0400
Message-ID:
<199806121515(_dot_)LAA14575(_at_)alderaan(_dot_)gsfc(_dot_)nasa(_dot_)gov>
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.
Change that to:
:0fhw
* 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"
And it works perfectly (note the ':0fhw' which is very important)
Thanks!
TjL