procmail
[Top] [All Lists]

FOLLOWUP >> Re: Matching 6 lines in the body, in order

1998-06-13 21:49:41

This is what I have settled on, but I want to make SURE that this will ONLY  
match when the first five lines are *left justified* AND are the *first*  
lines of the email message after *one* blank line

:0fhw
* B ?? ^^($)*Authenticated sender is.*$\
            Subject:.*$\
            Mime-Version: 1\.0$\
            Content-Type: text/plain; charset="us-ascii"$\
            Content-Transfer-Encoding: 7bit$
* B ?? ^EMAIL MARKETING WORKS
* B ?? ^Bull's Eye Gold
| formail -A"X-SpamChecker: Bulls Eye Gold"

        Here is an example of the actual spam I am looking to bounce... it
        always looks the same way (excep the sender address and the
        "subject"):

<one blank line after last of the headers>
Authenticated sender is <2819dd(_at_)mci(_dot_)com>
Subject:    2  8
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

EMAIL MARKETING WORKS!!

Bull's Eye Gold is the PREMIER email address collection tool.
<<< it goes on from there >>>


If those lines match I will be dumping the message, so I want to make sure I  
am not dumping forwards, etc (yes, I realize that this message would  
actually match the qualifiers).

Thanks for the help!

TjL