![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Email Antispam Techniques and Email Filtering Techniques Q&A and Procmail recipes for fighting spam. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| procmail code help | Hexabah | UNIX for Dummies Questions & Answers | 0 | 08-30-2006 11:05 PM |
| Procmail filter | luiz_fer10 | UNIX for Dummies Questions & Answers | 1 | 06-14-2002 04:33 PM |
| Procmail Tutorial | luiz_fer10 | UNIX for Dummies Questions & Answers | 1 | 05-24-2002 12:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 } |
|
|||||
|
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 They do something similar in the University of California at Berkeley's Procmail Tutorial Code:
###### # Rule 1: discard all mail send from SPAMSITE.COM or # with ADV in the subject ###### :0 * ^From:.*SPAMSITE.COM * ^Subject:.* ADV.* /dev/null I'm not able to test any of this, so I don't know why your code isn't working correctly... maybe the braces? Maybe the second :0 ? Last edited by oombera; 02-12-2004 at 11: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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|