<?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>Wrong Sieve implementation of &quot;Do not send responses to bulk or list messages&quot;</title> 
  <pubDate>Fri, 10 Apr 2026 15:00:34 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12938</link> 
  <atom:link rel="self" type="application/rss+xml" title="Wrong Sieve implementation of &quot;Do not send responses to bulk or list messages&quot;" href="https://bugs.horde.org/ticket/12938/rss" /> 
  <description>Wrong Sieve implementation of &quot;Do not send responses to bulk or list messages&quot;</description> 
 
   
   
  <item> 
   <title>This script is generated, if you check &quot;Do not send response</title> 
   <description>This script is generated, if you check &quot;Do not send responses to bulk or list messages&quot;.

 1: # Sieve Filter
    2: # Generated by Ingo (http://www.horde.org/apps/ingo/) (01/27/2014, 09:23)
    3: require [&quot;vacation&quot;, &quot;regex&quot;];
    4: # Vacation
    5: if allof ( not exists [&quot;list-help&quot;, &quot;list-unsubscribe&quot;, &quot;list-subscribe&quot;, &quot;list-owner&quot;, &quot;list-post&quot;, &quot;list-archive&quot;, &quot;list-id&quot;, &quot;Mailing-List&quot;], not header :comparator &quot;i;ascii-casemap&quot; :is &quot;Precedence&quot; [&quot;list&quot;, &quot;bulk&quot;, &quot;junk&quot;], not header :comparator &quot;i;ascii-casemap&quot; :matches &quot;To&quot; &quot;Multiple recipients of*&quot; ) {
    6:     vacation :days 7 :addresses &quot;/dev/null@example.com&quot; :subject &quot;Test&quot; &quot;Test 1&quot;;
    7: }

RFC 5228 sec. 5.5 explains, that &quot;All of the headers must exist or the test is false&quot;. Hence, if one of the enumerated headers is missing in the exists clause, e.g. &quot;Mailing-List&quot;, the &quot;not exists&quot; is false. E.g. the messages of the Horde list to not contain a &quot;Mailing-List&quot; header.

I would suggest to change the condition to:

anyof ( not exists &quot;list-help&quot;, not exists &quot;list-unsubscribe&quot;, not exists &quot;list-subscribe&quot;, ...</description> 
   <pubDate>Mon, 27 Jan 2014 08:29:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12938#t82142</link> 
  </item> 
   
  <item> 
   <title>This patch makes the script works for one or more of the lis</title> 
   <description>This patch makes the script works for one or more of the list headers instead of all of them:

--- ingo/lib/Script/Sieve.php.orig      2014-01-30 09:47:50.000000000 +0100
+++ ingo/lib/Script/Sieve.php   2014-01-30 09:52:16.000000000 +0100
@@ -337,4 +337,8 @@
             $headers[&#039;Mailing-List&#039;] = null;
-            $tmp = new Ingo_Script_Sieve_Test_Exists(array(&#039;headers&#039; =&gt; implode(&quot;\n&quot;, array_keys($headers))));
+               foreach($headers as $header =&gt; $dummy) {
+                   $tmp = new Ingo_Script_Sieve_Test_Exists(array(&#039;headers&#039; =&gt; $header));
             $tests[] = new Ingo_Script_Sieve_Test_Not($tmp);
+               }
+#            $tmp = new Ingo_Script_Sieve_Test_Exists(array(&#039;headers&#039; =&gt; implode(&quot;\n&quot;, array_keys($headers))));
+#            $tests[] = new Ingo_Script_Sieve_Test_Not($tmp);
             $vals = array(&#039;headers&#039; =&gt; &#039;Precedence&#039;,
</description> 
   <pubDate>Thu, 30 Jan 2014 09:01:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12938#t82187</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (FRAMEWORK_5_1):

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

commit 7d71388506ef92c0413f77e609936584b39dfa0c
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Thu Jan 30 12:49:10 2014 -0700

    [mms] Fix sieve driver correctly identifying mailing list when determining whether to send vacation messages (Bug #12938; skhorde@smail.inf.fg-bonn-rhein-sieg.de).

 ingo/docs/CHANGES         |    3 +++
 ingo/lib/Script/Sieve.php |    7 +++++--
 ingo/package.xml          |    4 ++--
 3 files changed, 10 insertions(+), 4 deletions(-)

http://git.horde.org/horde-git/-/commit/7d71388506ef92c0413f77e609936584b39dfa0c</description> 
   <pubDate>Thu, 30 Jan 2014 19:50:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12938#t82201</link> 
  </item> 
   
  <item> 
   <title>Ingo 3.1.4.</title> 
   <description>Ingo 3.1.4.</description> 
   <pubDate>Thu, 30 Jan 2014 19:52:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12938#t82202</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit d9a2b4bc7e28c6a87068b0878e5b9a8eae309bfe
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Thu Jan 30 12:49:10 2014 -0700

    [mms] Fix sieve driver correctly identifying mailing list when determining whether to send vacation messages (Bug #12938; skhorde@smail.inf.fg-bonn-rhein-sieg.de).
    
    Conflicts:
    	ingo/docs/CHANGES
    	ingo/package.xml

 ingo/docs/CHANGES         |    9 +++++++++
 ingo/lib/Script/Sieve.php |    7 +++++--
 ingo/package.xml          |   13 +++++++++++++
 3 files changed, 27 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/d9a2b4bc7e28c6a87068b0878e5b9a8eae309bfe</description> 
   <pubDate>Thu, 30 Jan 2014 19:53:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12938#t82203</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
