![]() |
|
|
|
|
|||||||
| Email Antispam Techniques and Email Filtering Techniques Q&A and Procmail recipes for fighting spam. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| procmail code help | Hexabah | UNIX for Dummies Questions & Answers | 0 | 08-30-2006 07:05 PM |
| Procmail filter | luiz_fer10 | UNIX for Dummies Questions & Answers | 1 | 06-14-2002 12:33 PM |
| Procmail Tutorial | luiz_fer10 | UNIX for Dummies Questions & Answers | 1 | 05-24-2002 08:39 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
procmail rule
I can tell this is not a recently active formum, but here goes, "why doesn't this procmail rule block
messages with víagra or v1agra appearing in the subject header :0 * ^Subject:.*(víagra¦v1agra¦pénis¦prescripti0n¦Medicati0n¦M0rtgage¦Xanaxz) { LOG="(THE 7 DIRTY WORDS) " :0 /dev/null } |
| Forum Sponsor | ||
|
|
|
||||
|
Waaaay down at the end of this procmail tutorial is a section called "Permanently deleting mail".
Not sure if this'll work for you or not, but their suggestion is: Code:
:0: * ^Subject:.*(word1¦word2¦word3) /dev/null Code:
###### # Rule 1: discard all mail send from SPAMSITE.COM or # with ADV in the subject ###### :0 * ^From:.*SPAMSITE.COM * ^Subject:.* ADV.* /dev/null Last edited by oombera; 02-12-2004 at 07:02 PM. |
|
|||
|
[rephrased question: how do you filter 8-bit characters in the subject header via procmail?
It cooks on the í which I believe to be an extended ASCII 161 Note that is an 8-bit character. This rule breaks on a message with Subject: víagra :0 * ^Subject:.*(víagra¦v1agra¦pénis¦prescripti0n¦Medicati0n¦M0rtgage¦Xanaxz) { LOG="(THE 7 DIRTY WORDS) " :0 /dev/null } [procmailLOG] --note the Subject header is garbage. From jones@justjones.edu Thu Feb 12 21:10:19 2004 Subject: =?ISO-8859-1?Q?Fwd:_v=EDagra?= Folder: /var/spool/mail/jones This rule works [7-bit ASCII only] with Subject: v1agra :0 * ^Subject:.*(v1agra¦prescripti0n¦Medicati0n¦M0rtgage¦Xanaxz) { LOG="(THE 7 DIRTY WORDS --) " :0 /dev/null } [procmailLOG] (THE 7 DIRTY WORDS) From jones@justjones.edu Thu Feb 12 21:03:30 2004 Subject: Fwd: v1agra Folder: /dev/null for the record, the word has to be spelled wrong to get on my 7 dirty words list note the zeros insted of O's in prescript0n reference George Carlin, 1970's, "The 7 Dirty Words" v\íagra doesn't work either. |
|
|||
|
i believe it is becuase it is an extended char.
if your filter can understand octal or hex you might have a better chance. or if you can define a new char encodeing for proc mail then you will be set. |
|
|||
|
This one works. Apparently that character "í" was an extended ASCII 237 0xED This is procmail-3.22-5
:0 * ^Subject:.*(v=EDagra|v=ECagra|v1agra|V\*iagra|V1\@gra|Prescripti0n¦M0rtgage) { LOG="(THE 7 DIRTY WORDS) " :0 /dev/null } |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|