[ingo] Default Spam filter rule doesn't work with Sieve
Arjen de Korte
arjen+horde at de-korte.org
Sun Feb 9 21:44:10 UTC 2014
Citeren Matti Rantakömi <matti at rantakomi.fi>:
> Hello,
>
> I'm using Horde Groupware Webmail Edition 5.1.3 (Ingo 3.1.3). There
> is default rule "Spam filter" with options:
>
> Spam Level: (Messages with a likely spam score greater than or equal
> to this number will be treated as spam.)
>
> Folder to receive spam:
>
> This is okay. The problem is that when I try to use "Save and
> enable" Ingo gives error message:
>
> Script not updated: There was an error activating the script. The
> driver said: ingo: line 10: error: unknown test 'No' (only reported
> once at first occurence). ingo: error: validation failed.
>
> So it seems that Ingo tries to write unproper Sieve lines for that
> spam filter rule and thus it cannot be validated.
>
> The sieve formatted default spam filter rule saved by Ingo is the following:
>
> 9: # Spam Filter
> 10: if No strings specified {
> 11: fileinto "Spam";
> 12: stop;
> 13: }
>
> As the error message says the problem is in line 10. As you can see
> there is "No strings specified" so the rule cannot work. I suppose
> that correct filter rule (lines 9-13 on my test) should be something
> like this:
>
> 9: # Spam Filter
> 10: if allof ( not header :comparator "i;ascii-casemap" :contains
> "X-Spam-Score" "-", headder :value "gt" :comparator
> "i;ascii-numeric" "X-Spam-Score" ["5"] ) {
> 11: fileinto "Spam";
> 12: stop;
> 13: }
You should enter a numeric value for the "Spam level" value. If you
don't, you'll get the exact message that you report.
> --
> Best regards,
>
> Matti Rantakömi
> --
> ingo mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5849 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/ingo/attachments/20140209/b2904870/attachment.bin>
More information about the ingo
mailing list