Sieve script not working

Nic Bernstein nic at onlight.com
Sat Jan 19 18:13:44 EST 2019


Andrea,
It would help to know which version of Cyrus you're having difficulty 
with, and what setting you're using for 'unixhierarchysep'?  If you've 
recently upgraded to 3.X, for example, have you followed the 
instructions and converted your sieve scripts?

Cheers,
     -nic

On 1/19/19 5:14 AM, Andrea Venturoli wrote:
> Hello.
>
> I'm using sieve scripts (among other things) to move messages that 
> MIMEDefang marked as spam into a dedicated folder.
>
> My scripts look like this:
>
>> require ["fileinto"];
>> require ["regex"];
>>
>> if anyof (header :regex "X-Spam-Score" "^[1-9][0-9]\.",
>>           header :contains "X-Attachment-Dropped" "")
>>   {fileinto "INBOX.Spam.Received";}
>
> Thus a message with the following header should go directly into the 
> "Spam/Received" folder:
>> X-Spam-Score: 26.012 (**************************) 
>> BITCOIN_SPAM_07,DCC_CHECK,DOS_OE_TO_MX,FSL_BULK_SIG,HDR_ORDER_FTSDMCXX_DIRECT,HDR_ORDER_FTSDMCXX_NORDNS,HELO_DYNAMIC_HCC,HELO_DYNAMIC_IPADDR2,HTML_MESSAGE,MIMEOLE_DIRECT_TO_MX,NO_FM_NAME_IP_HOSTN,RATWARE_NO_RDNS,RDNS_NONE,TO_EQ_FM_DIRECT_MX,ZMIde_OutlookExpress
>
>
>
> I'm doing this for three mailboxes: it works on two of them, not on 
> the third one.
> I checked the script is there and the folder exists; now I'm out of 
> ideas on what to try.
>
> Is there some way to get a sieve log or to debug it?
>
>  bye & Thanks
>     av.
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

-- 
Nic Bernstein                             nic at onlight.com
Onlight Inc.                              www.onlight.com
6525 W Bluemound Rd., Ste 24	          v. 414.272.4477
Milwaukee, Wisconsin  53213-4073	  f. 414.290.0335



More information about the Info-cyrus mailing list