[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] Special Characters in Subject



Mark Moulder wrote:

I am wondering if anyone has a procmail rule they can share that will look
for characters such as / \^ | in the subject of the message.

With Scott's and others' help a while back, and after testing/refining I am using the one below. Note it counts normal punctuation too, because a lot of this type of spam I have received had lots of periods, commas
and colons too. You can tune the number 5 higher for greater safety.

#any combo of these characters in excess
BADCHR=[,:;\^\'\`\.\"@]
:0
* ^Subject:[    ]*\/[^  ].*
{
 :0
 * -5^0
 *  1^1 $ MATCH ?? ${BADCHR}
 {
 LOG="Found $= (+5) suspicious  chars: $MATCH $NL "
 :0:
 $MAYBESPAM
 }
}


======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: