<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Default Spam filter rule doesn&#039;t work with Sieve</title> 
  <pubDate>Thu, 09 Apr 2026 19:39:44 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12964</link> 
  <atom:link rel="self" type="application/rss+xml" title="Default Spam filter rule doesn&#039;t work with Sieve" href="https://bugs.horde.org/ticket/12964/rss" /> 
  <description>Default Spam filter rule doesn&#039;t work with Sieve</description> 
 
   
   
  <item> 
   <title>Default rule &quot;Spam filter&quot; with options doesn&#039;t produce vali</title> 
   <description>Default rule &quot;Spam filter&quot; with options doesn&#039;t produce valid Sieve script.

Steps to reproduce:

1) Configure Ingo to use Sieve backend.
2) Try to Save and Activate Spam filter rule

Ingo outputs error message:

Script not updated: There was an error activating the script. The driver said: ingo: line 10: error: unknown test &#039;No&#039; (only reported once at first occurence). ingo: error: validation failed.

----

Lines 9-13 produced on spam filter activation:

    9: # Spam Filter
    10: if No strings specified {
    11:     fileinto &quot;Spam&quot;;
    12:     stop;
    13: }

As you can see there is &quot;No strings specified&quot; so the generated rule is invalid and thus cannot work. I suppose that correct Sieve rule my should be something like this:

    9: # Spam Filter
    10: if allof ( not header :comparator &quot;i;ascii-casemap&quot; :contains &quot;X-Spam-Score&quot; &quot;-&quot;, header :value &quot;gt&quot; :comparator &quot;i;ascii-numeric&quot; &quot;X-Spam-Score&quot; [&quot;5&quot;] ) {
    11:     fileinto &quot;Spam&quot;;
    12:     stop;
    13: } </description> 
   <pubDate>Mon, 10 Feb 2014 16:15:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12964#t82302</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit a9354d98136c</title> 
   <description>Changes have been made in Git (master):

commit a9354d98136c3eff3b9c28d6b90d5a91c87c6025
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Tue Feb 11 16:39:14 2014 +0100

    [jan] Make spam level a required form field (Bug #12964).

 ingo/lib/Form/Spam.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/a9354d98136c3eff3b9c28d6b90d5a91c87c6025</description> 
   <pubDate>Tue, 11 Feb 2014 15:45:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12964#t82329</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 8e231e632ed4</title> 
   <description>Changes have been made in Git (master):

commit 8e231e632ed4565e43bd7e6e91b9c12bc80d26f3
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Tue Feb 11 16:41:47 2014 +0100

    [jan] Make spam level a required form field (Bug #12964).
    
    Conflicts:
    	ingo/docs/CHANGES
    	ingo/package.xml

 ingo/docs/CHANGES |    1 +
 ingo/package.xml  |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

http://git.horde.org/horde-git/-/commit/8e231e632ed4565e43bd7e6e91b9c12bc80d26f3</description> 
   <pubDate>Tue, 11 Feb 2014 15:45:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12964#t82330</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (FRAMEWORK_5_1):

commit 1bad3</title> 
   <description>Changes have been made in Git (FRAMEWORK_5_1):

commit 1bad3071b057955153acd4437f7fac7c97ae320a
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Tue Feb 11 16:39:14 2014 +0100

    [jan] Make spam level a required form field (Bug #12964).

 ingo/lib/Form/Spam.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/1bad3071b057955153acd4437f7fac7c97ae320a</description> 
   <pubDate>Tue, 11 Feb 2014 15:48:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12964#t82331</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (FRAMEWORK_5_1):

commit 9658b</title> 
   <description>Changes have been made in Git (FRAMEWORK_5_1):

commit 9658b471d31304b22acb5078edd76995f24727cf
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Tue Feb 11 16:41:47 2014 +0100

    [jan] Make spam level a required form field (Bug #12964).

 ingo/docs/CHANGES |    1 +
 ingo/package.xml  |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

http://git.horde.org/horde-git/-/commit/9658b471d31304b22acb5078edd76995f24727cf</description> 
   <pubDate>Tue, 11 Feb 2014 15:48:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12964#t82332</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
