sieve rule needed

Marc G. Fournier scrappy at hub.org
Wed Mar 30 13:11:40 EST 2005


nope, that didn't do it either :(

this is the kinda of message I'm trying to filter out ... I tried removing 
the start ^ and end $, so that it would pick up any message that I 
thought would contain "any non-printable", but that didn't work either ...

some other way I should be stating this?  what sort of 'regex' does this 
follow?  same as perl, or something altogether different?

Thanks ...

==================
Date: Tue, 22 Feb 2000 14:37:30 +0800
From: "[GB2312] ֣ȨÓÑ" <43wfds at ynoutdoor.org>
To: sales at pgsql.com
Subject: [GB2312] salesÄúºÃ£¡ÄúÏëÈÃÄúµÄµçÄÔÈ¥ÅÜÒµÎñÂð£¿

¡¶ÍøÂçÓªÏú´óÈ«¡·¹âÅÌרҵ°æV2005 ---°ÑÄúµÄ¹ã¸æÖ±½ÓͶÈë¿Í»§µÄÐÅÏ䣡
---Ä¿Ç°×î¾­¼Ã¡¢×îÓÐЧµÄÍøÂç¹ã¸æ£¡
---°ÑÄúµÄµçÄÔ±ä³ÉһλÓÀ²»ÖªÆ£¾ëµÄÒµÎñÔ±£¡ ...È«Ì×µÄÍøÂçÓªÏúÈí¼þ
...µØÇø¡¢ÐÐÒµµÄÆóÒµ¼°¸öÈËÓÊÏäµØÖ· ...¸÷ÀàÈí¼þµÄʹÓÃͼ½â
...-ÿÔÂ100ÍòµÄÐÂÓÊÖ· ...Ò»´Î¸¶·Ñ£¬ÖÕÉíÏíÊÜÃâ·Ñ»áÔ±·þÎñ
ÏêÇéÇëä¯ÀÀÍøÖ·1£ºwww.vipsohu.net ÏêÇéÇëä¯ÀÀÍøÖ·2£ºshiji2000.crcoo.com
ÁªÏµµç»°£º010-68178347 / 68184430 µØÖ·£º±±¾©ÊÐÎ÷ËÄ»·Öз79ºÅ
====================

On Thu, 24 Mar 2005, Marc G. Fournier wrote:

>
> 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
>

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy at hub.org           Yahoo!: yscrappy              ICQ: 7615664


More information about the Info-cyrus mailing list