Uberspace / manual

This manual documents how to use the basic features of Uberspace 7.
https://manual.uberspace.de/
Other
51 stars 111 forks source link

Make sure the Spam-score is not negative #447

Closed phofm closed 1 year ago

phofm commented 2 years ago

The previous rule lead to messages with negative spam score lower than –4 to be considered SPAM because apparently i;ascii-numeric does not handle negative numbers. Edit: Only now did I find issue #363 – this PR would resolve that issue.

cf. https://doc.dovecot.org/configuration_manual/sieve/examples/#direct-filtering-using-message-header
»Be very careful when matching against spam score headers using the relational extension and the i;ascii-numeric comparator. This comparator can only be used to match unsigned integers. Strings that do not begin with a digit character represent positive infinity and will therefore always be larger than any score mentioned in your rule! That is why the above example first checks the minus sign explicitly.«