procmail
[Top] [All Lists]

Re: rule wanted...

1998-06-26 12:16:23
Jauder Ho asked,

|       In my quest to not see spam, I am looking for a filter that does
| the following... It counts the number of !s in a message body if it is
| more than 5, it delivers to a spam folder. Thanks.

 :0B:
 * 1^1 \!
 * -5^0
 spamfolder

Perhaps you should compare the number of exclamation points to the total
body size.  If a friend is sending you news about an exciting development
in his or her life, of somebody is sending you a fiction excerpt that you
want, the scattered exclamation points can add up.

Perhaps you meant five exclamation points in a row anywhere in the body
rather than five total?

 :0B:
 * \!!!!!
 spamfolder

But still I'd think something proportional to message length is a better
idea, say, if there are more than one exclamation point for every thirty
characters that are not exclamation points, it may be the overhype of spam.

 :0B:
 * 30^1 \!
 * -1^1 [^!]
 spamfolder

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