6.0.0-beta1
7/10/25

[#5539] IMAP stop-script rules halt all processing, not just processing of the matched message
Summary IMAP stop-script rules halt all processing, not just processing of the matched message
Queue Ingo
Queue Version 1.1.3
Type Bug
State Resolved
Priority 2. Medium
Owners chuck (at) horde (dot) org
Requester ingo (at) sitecreative (dot) com
Created 07/09/2007 (6576 days ago)
Due
Updated 08/28/2007 (6526 days ago)
Assigned 08/26/2007 (6528 days ago)
Resolved 08/28/2007 (6526 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/28/2007 04:30:31 AM Chuck Hagenbuch Comment #8
Assigned to Chuck Hagenbuch
Taken from Horde DevelopersHorde Developers
State ⇒ Resolved
Reply to this comment
Implemented for Ingo 1.2.
08/26/2007 12:55:38 AM Chuck Hagenbuch State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
 
08/15/2007 05:42:37 AM Matt Selsky Comment #7 Reply to this comment
I think what we should do instead is store a cache of the imap uids
that have matched stop rules, and exclude them from all future rules.
Does that make sense?
Yes, it does.
08/01/2007 04:28:22 AM Chuck Hagenbuch Comment #6
Summary ⇒ IMAP stop-script rules halt all processing, not just processing of the matched message
Reply to this comment
It looks to me like we simply do a break, aborting all further rules, 
if a stop-script rule matches in the imap driver. Since we're 
processing multiple messages at once, this makes no sense.



I think what we should do instead is store a cache of the imap uids 
that have matched stop rules, and exclude them from all future rules. 
Does that make sense?
07/31/2007 09:25:18 PM Jan Schneider Comment #5 Reply to this comment
If the filters are executed on login and refresh, he has to be using imap.
07/31/2007 09:00:47 PM Chuck Hagenbuch Comment #4 Reply to this comment
No. Sieve? IMAP filters? Procmail? Maildrop?
07/31/2007 08:52:53 PM ingo (at) sitecreative (dot) com Comment #3 Reply to this comment
Which script backend are you using?
I'm not entirely sure what you mean. Like what version of PHP? Should 
be PHP 5.2.3
07/31/2007 08:44:17 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Which script backend are you using?
07/09/2007 04:56:40 PM ingo (at) sitecreative (dot) com Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ Ingo
Summary ⇒ Filter list
Type ⇒ Bug
Reply to this comment


I have rules A, B, and C.

I have unseen messages #1 through #9.



#1 - Matches rule A.

#2 - A

#3 - A

#4 - B

#5 - A

#6 - B

#7 - C

#8 - C

#9 - B



My options are set up to only filter unseen messages and to apply the 
filter rules whenever the Inbox is displayed.



Upon first login, messages matching filter rule A (#1, #2, #3, #5
will get filtered. No other messages get filtered.



Refreshing the Inbox immediately results in messages matching filter 
rule B (#4, #6, and #9) being filtered.



Refreshing the Inbox again results in the remaining messages getting 
filtered by rule C.



All rules have the "Stop checking if this rule applies" checkbox 
marked, but that should not prevent the other rules from running in 
the same session. Expected behavior should be that messages #1 through 
#9 get filtered by the 3 different rules.



Just an assumption that maybe a "stop checking other rules" flag is 
being set on larger variable scope instead of just the current message 
being filtered?

Saved Queries