6.0.0-beta1
7/28/25

[#4618] Problem with creating multiple conditions in filter rules
Summary Problem with creating multiple conditions in filter rules
Queue Ingo
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester jpstewart (at) tntmax (dot) com
Created 11/03/2006 (6842 days ago)
Due
Updated 03/21/2007 (6704 days ago)
Assigned 11/12/2006 (6833 days ago)
Resolved 02/01/2007 (6752 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/21/2007 07:26:43 PM Chuck Hagenbuch Comment #7 Reply to this comment
That one snuck through in FW_3 but not in HEAD. Fixed now.
03/21/2007 07:05:57 PM horde (at) immerda (dot) ch Comment #6 Reply to this comment
Fixed, thanks!
only partially fixed.



as 
http://cvs.horde.org/diff.php?r1=1.49.10.11&r2=1.49.10.12&f=ingo%2Flib%2FScript%2Fimap.php shows it has only been fixed on line 167 not on line 223 as 
well.



however line 223 has to be fixed on our setup as well as otherwise the 
filters work only partially.



we are on all latest official stable releases and are using php 5.1.6
02/01/2007 08:16:39 PM Chuck Hagenbuch Comment #5
Assigned to Chuck Hagenbuch
Taken from Michael Slusarz
State ⇒ Resolved
Reply to this comment
Fixed, thanks!
01/31/2007 04:18:35 PM fabian (dot) kainzinger (at) tngtech (dot) com Comment #4 Reply to this comment
Two assigments in ingo/lib/Script/imap.php seem to be the problem:

$search_array[] = &$ob;



With PHP 4.x $search_array contains n identical entries (if there are 
n conditions in the filter rule) after the loop.



Changing the two lines (line 167 and 223) to



$search_array[] = $ob;



should do the job.
01/16/2007 04:36:54 PM fabian (dot) kainzinger (at) tngtech (dot) com Comment #3 Reply to this comment
We have exactly the same probelm here! With both 'or' and 'and' conditions...






11/21/2006 01:58:29 PM g (dot) tranelli (at) inarcassa (dot) it Comment #2 Reply to this comment
If I create a filter with one or more "or" conditions specified, the
filter fails to execute. If I create a filter with only one condition
it executes correctly. I have not tried multiple "and" conditions.
I am using the "Null" driver in the IMAP backend (first backend
listed in backends.php). I use the preferences backend to store the
rules.
I was writing about that when I saw your notification.

I had the same problem, too
11/12/2006 04:59:56 PM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
11/03/2006 07:31:04 PM jpstewart (at) tntmax (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Problem with creating multiple conditions in filter rules
Queue ⇒ Ingo
State ⇒ Unconfirmed
Reply to this comment
If I create a filter with one or more "or" conditions specified, the 
filter fails to execute. If I create a filter with only one condition 
it executes correctly. I have not tried multiple "and" conditions.

I am using the "Null" driver in the IMAP backend (first backend listed 
in backends.php). I use the preferences backend to store the rules.

Saved Queries