<?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>sieve: empty allof generates &#039;false&#039; instead of &#039;true&#039;</title> 
  <pubDate>Fri, 10 Apr 2026 09:35:40 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/4345</link> 
  <atom:link rel="self" type="application/rss+xml" title="sieve: empty allof generates &#039;false&#039; instead of &#039;true&#039;" href="https://bugs.horde.org/ticket/4345/rss" /> 
  <description>sieve: empty allof generates &#039;false&#039; instead of &#039;true&#039;</description> 
 
   
   
  <item> 
   <title>If I create a rule, where I choose to match every criteria I</title> 
   <description>If I create a rule, where I choose to match every criteria I specify,

but I specify not, then the generated code says &#039;if false&#039; instead of

&#039;is true&#039;.  Please keep in mind, that in mathematics (and because of

that in IT) &quot;allof no conditions&quot; evaluates to true, not to false.

That is anyof, which evaluates to false.</description> 
   <pubDate>Mon, 28 Aug 2006 11:18:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4345#t23449</link> 
  </item> 
   
  <item> 
   <title>But then your patch doesn&#039;t makes sense because it breaks th</title> 
   <description>But then your patch doesn&#039;t makes sense because it breaks the case &quot;anyof no criteria&quot;.</description> 
   <pubDate>Mon, 28 Aug 2006 21:40:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4345#t23528</link> 
  </item> 
   
  <item> 
   <title>&gt; But then your patch doesn&#039;t makes sense because it breaks </title> 
   <description>&gt; But then your patch doesn&#039;t makes sense because it breaks the case 

&gt; &quot;anyof no criteria&quot;.



no, it does not.

</description> 
   <pubDate>Mon, 28 Aug 2006 23:04:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4345#t23540</link> 
  </item> 
   
  <item> 
   <title>You wrote:



&gt; That is anyof, which evaluates to false.



</title> 
   <description>You wrote:



&gt; That is anyof, which evaluates to false.



But with your patch it always evaluates to true if no conditions are specified. But this is an academical discussion anyway, because &quot;if false&quot; doesn&#039;t make any sense. &quot;if true&quot; doesn&#039;t make much sense either, so I&#039;m tending to disallow any rules that don&#039;t have conditions specified.</description> 
   <pubDate>Tue, 29 Aug 2006 09:54:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4345#t23596</link> 
  </item> 
   
  <item> 
   <title>&gt; You wrote:

&gt;

&gt;&gt; That is anyof, which evaluates to false.</title> 
   <description>&gt; You wrote:

&gt;

&gt;&gt; That is anyof, which evaluates to false.

&gt;

&gt; But with your patch it always evaluates to true if no conditions are 

&gt; specified. 



I told you already, that it is not the case.  Please. Apply my patch to a test directory and test it if you do not believe, but I think it is clear from the source also.  Since it doesn&#039;t patch Sieve_Test_Anyof class, but Sieve_Test_Allof only.



&gt; But this is an academical discussion anyway, because &quot;if 

&gt; false&quot; doesn&#039;t make any sense. &quot;if true&quot; doesn&#039;t make much sense 

&gt; either, so I&#039;m tending to disallow any rules that don&#039;t have 

&gt; conditions specified.



It will be a big mistake, since I see no other way to create an always running custom rule, if there is, please enlighten me. Anyway this was the reason, why I bothered patching it.



gergely</description> 
   <pubDate>Tue, 29 Aug 2006 13:11:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4345#t23608</link> 
  </item> 
   
  <item> 
   <title>Convinced. Since the &quot;if false&quot; check doesn&#039;t make any sense</title> 
   <description>Convinced. Since the &quot;if false&quot; check doesn&#039;t make any sense at all, I changed the anyof test to return true without further rule criteria too.</description> 
   <pubDate>Tue, 10 Oct 2006 13:16:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4345#t24811</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
