6.0.0-beta1
7/15/25

[#7611] maildrop destination rules
Summary maildrop destination rules
Queue Ingo
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester rsalmon (at) mbpgroup (dot) com
Created 10/30/2008 (6102 days ago)
Due
Updated 05/25/2009 (5895 days ago)
Assigned
Resolved 11/07/2008 (6094 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
05/25/2009 12:53:10 AM horde (at) nospam (dot) obeliks (dot) de Comment #4 Reply to this comment
While this is a highly unlikely case, this change breaks numerical 
comparisons for any multi-field conditions. Since numerical 
comparisons use a numbered subgroup to get the number into a maildrop 
variable, adding another (capturing) group for the header fields 
shifts the number to 2 (i.e. $MATCH2 instead of $MATCH1) and thus 
breaks the comparison (because the value would be compared to the 
field name instead of the value).



This is easily fixed by using a non-capturing group for the header 
fields: "(?:" instead of "("



Since the maildrop driver requires maildrop >= 2.0 anyway, we can use 
this PCRE feature. I just confirmed this on maildrop 2.0.4
11/07/2008 06:28:29 AM Chuck Hagenbuch Comment #3
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Reply to this comment
Committed, thanks!
10/30/2008 12:10:44 PM rsalmon (at) mbpgroup (dot) com Comment #1
Priority ⇒ 1. Low
New Attachment: maildrop2.patch Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Ingo
Summary ⇒ maildrop destination rules
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
destination rules like 'To,Cc,Bcc,Resent-to', 'To,Cc,' don't work

the attached path should fix this.



the same fix should work for procmail : ticket #7117


Saved Queries