procmail regex help needed

Bennett Todd bet at rahul.net
Thu Nov 11 10:50:15 PST 2004


It'd be a help if you could send an actual sample of a spam-tagged
message. But taking you at your word that the S|*** is _appended_ to
the subject, then the pattern you gave isn't what you want.

I'd try

	* ^Subject: .*S\|\*\*\*\*$

for S| and three or more "*" at the end of the line. You didn't have
the "*" after the "." before the S, to match the entire subject.
So that's probably why quoting the "|" prevented it from matching
the spam you wanted to. However, leaving "|" unquoted meant any
subject with either an S as the second character (after that ".") or
containing three asterisks.

-Bennett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-chat/attachments/20041111/9bf444cf/attachment.sig>


More information about the lfs-chat mailing list