[Dovecot] A Dovecot Sieve spam filter question.

Andrzej Adam Filip anfi at onet.eu
Wed Dec 30 23:08:55 EET 2009


aja-lists at tni.org wrote:
> On 12/30/2009 08:30 PM, Andrzej Adam Filip wrote:
>> aja-lists at tni.org wrote:
>>> I'd like to make a filtering threshold for users to let them
>>> deal with spamassassin spam-level starred<  8 themselves,
>>> but spam-level starred higher than 8 should be discarded
> --- cut ---
>> Try the following:
>>
>> if header :contains "X-Spam-Level" "*****" {
>
> Thanks,
> I've just tested that with the gtube spam test,
> ( which gives this amount of stars :
> X-Spam-Level: ************************************************** )
>
> and the email ends up in the inbox.
>
> And i've tried this also :
> http://pastebin.ca/1732221
>
> Which fails with : Error: sieve: main_script: line 18: cannot nest
> tests deeper than 32 level

As I understand ":contains" tests presence of the sub-string
=> so you can test 'at least n consecutive stars present' ('n stars OR more')
=> there is no need for complicated anyof like in  http://pastebin.ca/1732221

> And I read about the spam-test option, but Dovecot Sieve does not
> support that yet (http://pigeonhole.dovecot.org).

-- 
[pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu
break;				/* don't do magic till later */
  -- Larry Wall in stab.c from the perl source code


More information about the dovecot mailing list