<?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>Filtering fails with some fields</title> 
  <pubDate>Fri, 10 Apr 2026 11:02:22 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11197</link> 
  <atom:link rel="self" type="application/rss+xml" title="Filtering fails with some fields" href="https://bugs.horde.org/ticket/11197/rss" /> 
  <description>Filtering fails with some fields</description> 
 
   
   
  <item> 
   <title>Using the following fields in the definition of a filter the</title> 
   <description>Using the following fields in the definition of a filter the result of the evaluation is always &quot;true&quot;, and therefore the filter action affects all messages in inbox:  Destination (To,Cc,Bcc,etc.)  -  Source (From,Reply-to,etc.)  -  Participant (From,To,etc.)</description> 
   <pubDate>Tue, 15 May 2012 17:21:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71419</link> 
  </item> 
   
  <item> 
   <title>You need to provide much more information, most importantly,</title> 
   <description>You need to provide much more information, most importantly, what filter backend you use, and how the generated script looks like, if any.</description> 
   <pubDate>Tue, 15 May 2012 17:35:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71422</link> 
  </item> 
   
  <item> 
   <title>&gt; You need to provide much more information, most importantl</title> 
   <description>&gt; You need to provide much more information, most importantly, what 
&gt; filter backend you use, and how the generated script looks like, if 
&gt; any.

We are using default settings provided in ingo/config/backends.php, so imap is the only backend enabled.
In the other hand in config/conf.php we have setted $conf[storage][driver]=SQL, as you can see all settings are by default.</description> 
   <pubDate>Tue, 15 May 2012 17:54:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71426</link> 
  </item> 
   
  <item> 
   <title>To further debug this issue, we need details of the IMP -&gt; I</title> 
   <description>To further debug this issue, we need details of the IMP -&gt; IMAP/POP communication.

To enable debugging, see instructions contained in imp/config/backends.php (the &#039;debug&#039; config parameter).  

Debugging should not be enabled on a production server,   Attach/post only the portion of the log that directly deals with the problem reported (it may be simplest to clear the log file and then perform the event that causes the error).</description> 
   <pubDate>Tue, 15 May 2012 18:30:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71427</link> 
  </item> 
   
  <item> 
   <title>See attached file imp-debug-log,  it was generated while pro</title> 
   <description>See attached file imp-debug-log,  it was generated while processing the filter for 4 items on inbox, that were moved by the filter to &quot;Nueva&quot; folder.</description> 
   <pubDate>Wed, 16 May 2012 14:30:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71429</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 3a1776beec29f6b5cd8aaa213f2c93b04d4d7682
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Thu May 24 12:26:17 2012 -0600

    [mms] Fix IMAP filtering on combination fields (Bug #11197).

 ingo/docs/CHANGES        |    1 +
 ingo/lib/Script/Imap.php |   48 +++++++++++++++++++++++-----------------------
 ingo/package.xml         |    2 +
 3 files changed, 27 insertions(+), 24 deletions(-)

http://git.horde.org/horde-git/-/commit/3a1776beec29f6b5cd8aaa213f2c93b04d4d7682</description> 
   <pubDate>Thu, 24 May 2012 18:26:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71454</link> 
  </item> 
   
  <item> 
   <title>Does this fix?</title> 
   <description>Does this fix?</description> 
   <pubDate>Thu, 24 May 2012 18:29:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71455</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit 3a1776beec2</title> 
   <description>Changes have been made in Git (develop):

commit 3a1776beec29f6b5cd8aaa213f2c93b04d4d7682
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Thu May 24 12:26:17 2012 -0600

    [mms] Fix IMAP filtering on combination fields (Bug #11197).

 ingo/docs/CHANGES        |    1 +
 ingo/lib/Script/Imap.php |   48 +++++++++++++++++++++++-----------------------
 ingo/package.xml         |    2 +
 3 files changed, 27 insertions(+), 24 deletions(-)

http://git.horde.org/horde-git/-/commit/3a1776beec29f6b5cd8aaa213f2c93b04d4d7682</description> 
   <pubDate>Tue, 29 May 2012 17:43:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71467</link> 
  </item> 
   
  <item> 
   <title>This seems to have done more bad than good.</title> 
   <description>This seems to have done more bad than good.</description> 
   <pubDate>Thu, 31 May 2012 10:27:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71471</link> 
  </item> 
   
  <item> 
   <title>I&#039;m going to revert then.  I don&#039;t have time to look at this</title> 
   <description>I&#039;m going to revert then.  I don&#039;t have time to look at this right now.</description> 
   <pubDate>Thu, 31 May 2012 17:38:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71472</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 958daacad7e1b85c539a9f5fc00b9fade123c645
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Thu May 31 12:00:42 2012 -0600

    Make this call BC (Bug #11197)

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

http://git.horde.org/horde-git/-/commit/958daacad7e1b85c539a9f5fc00b9fade123c645</description> 
   <pubDate>Thu, 31 May 2012 18:00:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71473</link> 
  </item> 
   
  <item> 
   <title>Or maybe this helps, since this code works with Imap_Client </title> 
   <description>Or maybe this helps, since this code works with Imap_Client v2 but not v1.</description> 
   <pubDate>Thu, 31 May 2012 18:02:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71474</link> 
  </item> 
   
  <item> 
   <title>Hello,

I just upgraded to the latest groupware edition et</title> 
   <description>Hello,

I just upgraded to the latest groupware edition et filtering is now broken and I believe il has to do with this bug. My installation was up to date last friday, up and running smoothly and filtering have been running fine for months.

My filter backend is SQL.
The filter rules look for specific custom headder and move message to different folders accordingly. All the rules are simple, i.e. only one headder is checked, if matched, move message then stop.

Here is what I get in the syslog when filter is applied. Hope it will help

May 31 14:57:39 scommuns HORDE: [ingo] PHP ERROR: array_merge(): Argument #2 is not an array [pid 30898 on line 626 of &quot;/usr/share/pear/Horde/Imap/Client/Search/Query.php&quot;]
May 31 14:57:39 scommuns HORDE: [ingo] PHP ERROR: array_merge(): Argument #2 is not an array [pid 30898 on line 626 of &quot;/usr/share/pear/Horde/Imap/Client/Search/Query.php&quot;]
May 31 14:57:39 scommuns HORDE: [ingo] PHP ERROR: array_merge(): Argument #2 is not an array [pid 30898 on line 626 of &quot;/usr/share/pear/Horde/Imap/Client/Search/Query.php&quot;]
May 31 14:57:40 scommuns HORDE: [ingo] PHP ERROR: array_merge(): Argument #2 is not an array [pid 30898 on line 626 of &quot;/usr/share/pear/Horde/Imap/Client/Search/Query.php&quot;]
May 31 14:57:40 scommuns HORDE: [ingo] PHP ERROR: array_merge(): Argument #2 is not an array [pid 30898 on line 626 of &quot;/usr/share/pear/Horde/Imap/Client/Search/Query.php&quot;]
May 31 14:57:40 scommuns HORDE: [ingo] PHP ERROR: array_merge(): Argument #2 is not an array [pid 30898 on line 626 of &quot;/usr/share/pear/Horde/Imap/Client/Search/Query.php&quot;]
May 31 14:57:40 scommuns HORDE: [ingo] PHP ERROR: array_merge(): Argument #2 is not an array [pid 30898 on line 626 of &quot;/usr/share/pear/Horde/Imap/Client/Search/Query.php&quot;]
May 31 14:57:40 scommuns HORDE: [ingo] PHP ERROR: array_merge(): Argument #2 is not an array [pid 30898 on line 626 of &quot;/usr/share/pear/Horde/Imap/Client/Search/Query.php&quot;]
</description> 
   <pubDate>Thu, 31 May 2012 19:11:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71475</link> 
  </item> 
   
  <item> 
   <title>Forgot to describe how il is broken:

Filtering rules are </title> 
   <description>Forgot to describe how il is broken:

Filtering rules are as follows:
if match X-headder1 then move to directory dir1 stop
if match X-headder2 then move to directory dir2 stop
...

No matter if headder is matched or not, ALL messages are moved to the directory dir1

Also, ingo version is 2.0.8

Hope this helps</description> 
   <pubDate>Fri, 01 Jun 2012 13:58:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71482</link> 
  </item> 
   
  <item> 
   <title>&gt; No matter if headder is matched or not, ALL messages are m</title> 
   <description>&gt; No matter if headder is matched or not, ALL messages are moved to the 
&gt; directory dir1

This is exactly what would be expected given the error message reported.  Since the specific AND/OR rules are not correctly added to the base query object, the base query object would default to an ALL search.</description> 
   <pubDate>Fri, 01 Jun 2012 16:46:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71490</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit 958daacad7e</title> 
   <description>Changes have been made in Git (develop):

commit 958daacad7e1b85c539a9f5fc00b9fade123c645
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Thu May 31 12:00:42 2012 -0600

    Make this call BC (Bug #11197)

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

http://git.horde.org/horde-git/-/commit/958daacad7e1b85c539a9f5fc00b9fade123c645</description> 
   <pubDate>Mon, 04 Jun 2012 15:14:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71505</link> 
  </item> 
   
  <item> 
   <title>Hi,
I had the same issue and I have applied the fix on ingo</title> 
   <description>Hi,
I had the same issue and I have applied the fix on ingo/lib/Script/Imap.php however I am now getting the following:

HORDE: [ingo] PHP ERROR: array_merge(): Argument #2 is not an array [pid xxx on line 626 of &quot;/usr/share/pear/Horde/Imap/Client/Search/Query.php&quot;]


&gt; Changes have been made in Git (develop):
&gt;
&gt; commit 958daacad7e1b85c539a9f5fc00b9fade123c645
&gt; Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
&gt; Date:   Thu May 31 12:00:42 2012 -0600
&gt;
&gt;     Make this call BC (Bug #11197)
&gt;
&gt;  ingo/lib/Script/Imap.php |    2 +-
&gt;  1 files changed, 1 insertions(+), 1 deletions(-)
&gt;
&gt; http://git.horde.org/horde-git/-/commit/958daacad7e1b85c539a9f5fc00b9fade123c645
</description> 
   <pubDate>Mon, 04 Jun 2012 16:53:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71512</link> 
  </item> 
   
  <item> 
   <title>I guess line 159 of ingo/lib/Script/Imap.php need a fix as w</title> 
   <description>I guess line 159 of ingo/lib/Script/Imap.php need a fix as well from:
$query-&gt;andSearch($or_ob);
to
$query-&gt;andSearch(array($or_ob));

&gt; Hi,
&gt; I had the same issue and I have applied the fix on 
&gt; ingo/lib/Script/Imap.php however I am now getting the following:
&gt;
&gt; HORDE: [ingo] PHP ERROR: array_merge(): Argument #2 is not an array 
&gt; [pid xxx on line 626 of 
&gt; &quot;/usr/share/pear/Horde/Imap/Client/Search/Query.php&quot;]
&gt;
&gt;
&gt;&gt; Changes have been made in Git (develop):
&gt;&gt;
&gt;&gt; commit 958daacad7e1b85c539a9f5fc00b9fade123c645
&gt;&gt; Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
&gt;&gt; Date:   Thu May 31 12:00:42 2012 -0600
&gt;&gt;
&gt;&gt;     Make this call BC (Bug #11197)
&gt;&gt;
&gt;&gt;  ingo/lib/Script/Imap.php |    2 +-
&gt;&gt;  1 files changed, 1 insertions(+), 1 deletions(-)
&gt;&gt;
&gt;&gt; http://git.horde.org/horde-git/-/commit/958daacad7e1b85c539a9f5fc00b9fade123c645
&gt;
</description> 
   <pubDate>Mon, 04 Jun 2012 17:11:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71513</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 460d3766089df6b20f0ec47d51ea27a0ef654fc7
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Mon Jun 4 14:23:26 2012 -0600

    Bug #11197: Another BC fix

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

http://git.horde.org/horde-git/-/commit/460d3766089df6b20f0ec47d51ea27a0ef654fc7</description> 
   <pubDate>Mon, 04 Jun 2012 20:23:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71517</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit 460d3766089</title> 
   <description>Changes have been made in Git (develop):

commit 460d3766089df6b20f0ec47d51ea27a0ef654fc7
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Mon Jun 4 14:23:26 2012 -0600

    Bug #11197: Another BC fix

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

http://git.horde.org/horde-git/-/commit/460d3766089df6b20f0ec47d51ea27a0ef654fc7</description> 
   <pubDate>Tue, 05 Jun 2012 19:49:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71536</link> 
  </item> 
   
  <item> 
   <title>If this is such high priority, did anybody actually test the</title> 
   <description>If this is such high priority, did anybody actually test the committed fixes and can confirm whether the issue is fixed now or not?</description> 
   <pubDate>Wed, 06 Jun 2012 09:34:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71541</link> 
  </item> 
   
  <item> 
   <title>&gt; If this is such high priority, did anybody actually test t</title> 
   <description>&gt; If this is such high priority, did anybody actually test the 
&gt; committed fixes and can confirm whether the issue is fixed now or not?

I would like to test but I don&#039;t know how to get/apply patches. Also the installation is pear installation. If anybody can provide me help on how to do so, I am willing to test and give feedback on whether the problem disappeared.</description> 
   <pubDate>Wed, 06 Jun 2012 14:22:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71542</link> 
  </item> 
   
  <item> 
   <title>2012-06-08T15:12:38+02:00 DEBUG: HORDE [ingo] SQL  (0,0025s)</title> 
   <description>2012-06-08T15:12:38+02:00 DEBUG: HORDE [ingo] SQL  (0,0025s)  
	SELECT * FROM ingo_rules WHERE rule_owner = &#039;rvuser&#039; ORDER BY rule_order [pid 3666 on line 803 of &quot;/usr/share/php/Horde/Db/Adapter/Base.php&quot;]
2012-06-08T15:12:38+02:00 WARN: HORDE [ingo] PHP ERROR: array_merge(): Argument #2 is not an array [pid 3666 on line 626 of &quot;/usr/share/php/Horde/Imap/Client/Search/Query.php&quot;]
 7. Ingo_Script_Imap-&gt;perform() /var/www/horde/ingo/lib/Api.php:108
 8. Horde_Imap_Client_Search_Query-&gt;andSearch() /var/www/horde/ingo/lib/Script/Imap.php:236
2012-06-08T15:12:38+02:00 DEBUG: HORDE [ingo]  1. IMP_Mailbox-&gt;filter() /var/www/horde/imp/mailbox.php:214
 7. Ingo_Script_Imap-&gt;perform() /var/www/horde/ingo/lib/Api.php:108
 8. Horde_Imap_Client_Search_Query-&gt;andSearch() /var/www/horde/ingo/lib/Script/Imap.php:236
2012-06-08T15:12:39+02:00 DEBUG: HORDE [ingo] Filteraktivität: Die Nachricht &quot;rhsh rfesrh&quot; von &quot;&lt;123@456.78&gt;&quot; wurde zum Ordner &quot;test&quot; verschoben. [pid 3666 on line 27 of &quot;/usr/share/php/Horde/Core/Notification/Handler/Decorator/Hordelog.php&quot;]
2012-06-08T15:12:39+02:00 DEBUG: HORDE [ingo] Filteraktivität: Die Nachricht &quot;123&quot; von &quot;&lt;123@456.78&gt;&quot; wurde zum Ordner &quot;test&quot; verschoben. [pid 3666 on line 27 of &quot;/usr/share/php/Horde/Core/Notification/Handler/Decorator/Hordelog.php&quot;]
2012-06-08T15:12:39+02:00 DEBUG: HORDE [ingo] Filteraktivität: Die Nachricht &quot;test&quot; von &quot;&lt;123@456.78&gt;&quot; wurde zum Ordner &quot;test&quot; verschoben. [pid 3666 on line 27 of &quot;/usr/share/php/Horde/Core/Notification/Handler/Decorator/Hordelog.php&quot;]

Not solved!</description> 
   <pubDate>Fri, 08 Jun 2012 13:16:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71551</link> 
  </item> 
   
  <item> 
   <title>&gt; Not solved!

You didn&#039;t apply BOTH patches.</title> 
   <description>&gt; Not solved!

You didn&#039;t apply BOTH patches.</description> 
   <pubDate>Fri, 08 Jun 2012 23:15:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71556</link> 
  </item> 
   
  <item> 
   <title>Can somebody *please* test those (both!) patches and report </title> 
   <description>Can somebody *please* test those (both!) patches and report back if this is fixed. We won&#039;t release a new version without confirmation.</description> 
   <pubDate>Sat, 16 Jun 2012 17:44:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71586</link> 
  </item> 
   
  <item> 
   <title>It is fixed. Sorry for delay.
</title> 
   <description>It is fixed. Sorry for delay.
</description> 
   <pubDate>Mon, 18 Jun 2012 06:36:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71598</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 958d00d4fdbe5221594c6c574ff9a1988d223bbf
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Tue Jun 26 11:59:54 2012 +0200

    [mms] Fix patch for filtering on combination fields (Bug #11197).

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

http://git.horde.org/horde-git/-/commit/958d00d4fdbe5221594c6c574ff9a1988d223bbf</description> 
   <pubDate>Tue, 26 Jun 2012 10:04:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71651</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit 958d00d4fdb</title> 
   <description>Changes have been made in Git (develop):

commit 958d00d4fdbe5221594c6c574ff9a1988d223bbf
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Tue Jun 26 11:59:54 2012 +0200

    [mms] Fix patch for filtering on combination fields (Bug #11197).

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

http://git.horde.org/horde-git/-/commit/958d00d4fdbe5221594c6c574ff9a1988d223bbf</description> 
   <pubDate>Tue, 26 Jun 2012 14:16:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11197#t71652</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
