sieve rule needed

Marc G. Fournier scrappy at hub.org
Thu Mar 24 22:12:44 EST 2005


Perfect, and thank you ... I set it to go to a 'garbage-can' folder, just 
in case, but at least it will keep the trash out of my regular mail ;)



On Thu, 24 Mar 2005, Ken Murchison wrote:

> Marc G. Fournier wrote:
>> On Thu, 24 Mar 2005, Scott Balmos wrote:
>> 
>>>> 
>>>> does anyone have a rule for sieve that will disregard emails coming in
>>>> with a subject that just contains garbage?
>>>> 
>>>> I can't even cut-n-paste an example ... :(
>>>> 
>>>> ----
>>>> Marc G. Fournier           Hub.Org Networking Services
>>>> (http://www.hub.org)
>>>> Email: scrappy at hub.org           Yahoo!: yscrappy              ICQ:
>>>> 7615664
>>>> ---
>>>> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
>>>> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
>>>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>>> 
>>>> 
>>> 
>>> if header :contains "Subject" "garbage"
>>> {
>>> discard;
>>> }
>>> 
>>> :D
>>> 
>>> Kind of hard to develop an exact, programmatic definition of what
>>> "garbage" is, right?
>> 
>> 
>> Sorry, figured that everyone else was probably getting this too, since it 
>> seems to be 'standard spam' nowadays :(
>> 
>> garbage == those messages whose subjects are all "non-ASCII" characters ...
>
> Just off the top of my head (its been so long since I wrote the regex draft 
> I'm not sure I remember the syntax):
>
> # the subject consists of nothing but non-printable characters
> if header :regex  :comparator "i;octet" "subject" "^[^[:print:]]+$" {
>  discard;
> }
>
> -- 
> Kenneth Murchison     Oceana Matrix Ltd.
> Software Engineer     21 Princeton Place
> 716-662-8973 x26      Orchard Park, NY 14127
> --PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
>

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy at hub.org           Yahoo!: yscrappy              ICQ: 7615664
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list