procmail
[Top] [All Lists]

Why this filter didn't work.....

2002-02-20 12:56:44

I have a couple of questions I'm hoping someone could help me with:

Question 1:

I have the following filter set in /etc/procmailrc:

:0 B
* to opt out
/dev/null

However, an email with this in the body got through:

This email was sent to <big>smorris(_at_)up(_dot_)com</big> so you must use 
that email
address to opt out.  (Notice the "opt out" at the end of that sentence.)

I verified that the above recipe was in my procmailrc file (I thought maybe
I had it as "opt-out" instead of "opt out") but found that I did have it as
I wanted it.  I then forwarded the email to myself, and the filter worked,
deleting the email.  I didn't make any modifications to the recipe before
forwarding it to myself, and the recipe worked.

There was some html code in the original email, but in viewing the source,
I found that "opt out" was indeed there, unaffected by any html. Does
anyone know why the recipe failed to catch it from the original sender, but
then it worked when I simply forwarded it to myself?

Question 2:
I have some filters set up like this, based on a document I found at
http://starbase.neosoft.com/~claird/comp.mail.misc/Craig_Johnston1

Here are a few of them:

:0 B
* softwareforyou
/dev/null

:0 B
* visosite
/dev/null

:0 B
* as seen on national tv
spam

:0 B
* multilevel marketing
spam

:0
* From:(_dot_)*(_at_)sexyfun\(_dot_)net
/dev/null

:0
* Subject:.*enlarge your penis
/dev/null

:0
* Subject:.*order viagra
spam

:0 B
* Pursuant to Section 301
/dev/null

I have a concern that I may be doing something wrong, given the examples of
very sophisticated recipes I see you gentlemen posting on here.  If one of
you has a moment, could you please comment on these types of filters?

Thanks
Seth


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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