procmail
[Top] [All Lists]

Re: Identifying spam by those numbers at the end of subject line

2003-09-26 16:49:10
On Fri, Sep 26, 2003 at 04:46:32PM -0500, Daniel Liston wrote:

# Deliver messages with 4 spaces in a row to my spam folder.
# .* at the end means the 4 spaces must be followed by 0 or
# more characters but mainly provides a border for the white
# space
:0
* ^Subject:.*     .*
spam

There is no reason for the trailing .*
Use parens for your "border".

 * ^Subject:.*     ()


# Deliver messages with 5 dots in a row to my spam folder
:0
* ^Subject:.*\.\.\.\.\.
spam

# Deliver messages with 2 spaces followed by 4 numbers to
# my spam folder
:0
* ^Subject:.*  [0-9][0-9][0-9][0-9]
spam

You could combine the last one with the first.

 * ^Subject:.*  [0-9 ][0-9 ][0-9][0-9]

-- 
dman

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