Summary | Procmail rule with Umlaut wrong folder because backslash |
Queue | Ingo |
Queue Version | 3.2.11 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | samuel.wolf (at) wolf-maschinenbau (dot) de |
Created | 07/27/2016 (3267 days ago) |
Due | |
Updated | 10/20/2017 (2817 days ago) |
Assigned | 07/31/2016 (3263 days ago) |
Resolved | 08/01/2016 (3262 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
commit 657fa85d249ba4bf7a62f51f7be78bf7289b8943
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Fri, 29 Jul 2016 11:22:10 -0400
Bug: 14429Escape mailbox before converting to utf7imap.M lib/Script/Procmail/Recipe.php
https://github.com/horde/ingo/commit/657fa85d249ba4bf7a62f51f7be78bf7289b8943
State ⇒ Resolved
names, using escapeshellcmd will corrupt mailbox names that contain
things like '&' anyway since these are encoded in a different way.
I.e, we can't escape here anyway.
Fixed in Git:
https://github.com/horde/horde/commit/fe8e7606e6e06626f574877b0ff0e6e1f963d099
not happening on my system.
LANGUAGE de_DE.UTF-8
phpinfo();
from within the administrative phpshell page? Specifically, the LC_ALL
or LANG environment variables.
ingo/lib/Script/Procmail/Recipe.php
$folder = substr($folder, 6);
}
$mbox = new Horde_Imap_Client_Mailbox(escapeshellcmd($folder));
return '".' . $mbox->utf7imap . '/"';
}
return str_replace(' ', '\ ', escapeshellcmd($folder));
}
}
root@wolfmailserver:/var/www/https/horde#
with regard to special characters and escapeshell* functions.
State ⇒ Feedback
Are you sure the changes were applied correctly? The lines in question
in ingo/lib/Script/Procmail/Recipe.php should look like this
(starting at line 470):
$mbox = new Horde_Imap_Client_Mailbox(escapeshellcmd($folder));
return '".' . $mbox->utf7imap . '/"';
But the procmail script missing the Umlaut now completely:
##### Horde #####
:0
* ^From:.*@horde\.org
".Umlaute-/"
Assigned to Michael Rubinsky
State ⇒ Resolved
commit fba0d5ff4d8f74f3ca6ccf5e60664db0d0c8d4f4
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Fri Jul 29 11:17:06 2016 -0400
Bug: 14429Escape mailbox before converting to utf7imap.ingo/lib/Script/Procmail/Recipe.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
http://github.com/horde/horde/commit/fba0d5ff4d8f74f3ca6ccf5e60664db0d0c8d4f4
commit 58f170c7ce44f73f9d96516e42459179864f27eb
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Fri Jul 29 11:17:06 2016 -0400
Bug: 14429Escape mailbox before converting to utf7imap.ingo/lib/Script/Procmail/Recipe.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
http://github.com/horde/horde/commit/58f170c7ce44f73f9d96516e42459179864f27eb
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Procmail rule with Umlaut wrong folder because backslash
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Create a filte rule with Ingo "Deliver to folder... [Umlaute-ä]"
generate following procmail script:
[...]
140: ##### Horde #####
141: :0
142: * ^From:.*@horde\.org
143: ".Umlaute-\&AOQ-/"
But the folder in the maildir is named ".Umlaute-&AOQ-", as soon the
filter match procmail create a new folder named ".Umlaute-\&AOQ-" and
deliver the mail into it.