Summary | Ingo 3 destroys some custom rules. |
Queue | Ingo |
Queue Version | 3.0.1 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | warp-spam_horde (at) aehallh (dot) com |
Created | 12/15/2012 (4584 days ago) |
Due | |
Updated | 02/01/2013 (4536 days ago) |
Assigned | 01/31/2013 (4537 days ago) |
Resolved | 02/01/2013 (4536 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | 3.0.3 |
Patch | No |
State ⇒ Resolved
Milestone ⇒ 3.0.3
commit 13db04f101d1aa08503f26619dcdf99481135c95
Author: Jan Schneider <jan@horde.org>
Date: Fri Feb 1 14:28:12 2013 +0100
[jan] Fix multiple user-defined headers in a single rule
(Zephaniah E. Loss-Cutler-Hull,
Bug #11893).ingo/docs/CHANGES | 2 ++
ingo/package.xml | 2 ++
ingo/rule.php | 6 +-----
3 files changed, 5 insertions(+), 5 deletions(-)
http://git.horde.org/horde-git/-/commit/13db04f101d1aa08503f26619dcdf99481135c95
New Attachment: ingo.diff
Attached.
Sorry about that.
Zephaniah E. Loss-Cutler-Hull.
Patch ⇒ No
State ⇒ Feedback
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Ingo 3 destroys some custom rules.
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ Yes
State ⇒ Unconfirmed
Self-Defined Header: 'X-Original-To' IS 'foo1@example.com'
Self-Defined Header: 'Delivered-To' IS 'foo1@example.com'
Self-Defined Header: 'X-Original-To' IS 'foo2@example.com'
Self-Defined Header: 'Delivered-To' IS 'foo2@example.com'
Ingo 3 will cause condition 2 to be '-' and condition 3 to be '', thus
breaking the rule.
The code seems to have some confusion as to if $vars->userheader is
supposed to be an array or a straight value.
The attached patch fixes at least this problem by forcing it to always
be treated as a straight value that is unconditionally set to the user
header in question.
(For an actual commit, the lines should at the very least be deleted
and the indendation corrected.)
Regards,
Zephaniah E. Loss-Cutler-Hull.