| Summary | Procmail script generation error |
| Queue | Ingo |
| Queue Version | 1.2.3 |
| Type | Bug |
| State | Resolved |
| Priority | 1. Low |
| Owners | jan (at) horde (dot) org |
| Requester | rene.plattner (at) uibk (dot) ac (dot) at |
| Created | 12/28/09 (5946 days ago) |
| Due | |
| Updated | 1/13/10 (5930 days ago) |
| Assigned | 12/30/09 (5944 days ago) |
| Resolved | 12/30/09 (5944 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | 1.2.4 |
| Patch | No |
MFB: Remove stray slash (
Bug #8804).http://git.horde.org/diff.php/ingo/docs/CHANGES?rt=horde-git&r1=b4ad4f8663a37182188cbffd960651e089893e8a&r2=7d76106c3960377c978520367292805c234e4fb1
http://git.horde.org/diff.php/ingo/lib/Script/Procmail.php?rt=horde-git&r1=a04d974faf3fd7f46e2036a8917d2fab4091fbdb&r2=7d76106c3960377c978520367292805c234e4fb1
MFB: Remove stray slash (
Bug #8804).http://git.horde.org/diff.php/ingo/docs/CHANGES?rt=horde-hatchery&r1=b4ad4f8663a37182188cbffd960651e089893e8a&r2=7d76106c3960377c978520367292805c234e4fb1
http://git.horde.org/diff.php/ingo/lib/Script/Procmail.php?rt=horde-hatchery&r1=a04d974faf3fd7f46e2036a8917d2fab4091fbdb&r2=7d76106c3960377c978520367292805c234e4fb1
State ⇒ Resolved
Milestone ⇒ 1.2.4
Assigned to Jan Schneider
Remove stray slash (
Bug #8804).http://cvs.horde.org/diff.php/ingo/lib/Script/procmail.php?rt=horde&r1=1.46.10.33&r2=1.46.10.34&ty=u
* ^From.*peter
There shouldn't be any slash characters.
State ⇒ Feedback
* /^(To|Cc|Bcc|Resent-to|From|Sender|Reply-to|Resent-from):.*someaddress
and this looks like it's supposed to be a regular expression that's
missing the closing slash. Can anybody confirm, that this is the
correct the rule:
* /^(To|Cc|Bcc|Resent-to|From|Sender|Reply-to|Resent-from):.*someaddress/
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Procmail script generation error
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
I noticed a problem at procmail script generation.
'To,Cc,Bcc,Resent-to'
is translated to
* \^To,Cc,Bcc,Resent-to: ...
should be
* ^To,Cc,Bcc,Resent-to: ...
I solved this as follows:
--- ingo/lib/Script/procmail.php_orig 2009-11-11 08:55:31.000000000 +0100
+++ ingo/lib/Script/procmail.php 2009-11-11 08:59:06.000000000 +0100
@@ -640,7 +640,7 @@
if (strpos($condition['field'], ',') == false) {
$string = '^' . $condition['field'] . ':';
} else {
- $string .= '/^(' . str_replace(',', '|',
$condition['field']) . '):';
+ $string .= '^(' . str_replace(',', '|',
$condition['field']) . '):';
}
$prefix = ' ';
}