[#8140] Xfilter failed when the subject contains quote
Summary Xfilter failed when the subject contains quote
Queue Ingo
Queue Version 1.2.1
Type Bug
State No Feedback
Priority 2. Medium
Owners
Requester gerard (dot) breiner (at) ias (dot) u-psud (dot) fr
Created 04/01/09 (351 days ago)
Due
Updated 09/18/09 (181 days ago)
Assigned 08/18/09 (212 days ago)
Resolved 09/16/09 (183 days ago)
Attachments
Milestone
Patch No

History
09/18/09 gerard (dot) breiner (at) ias (dot) u-psud (dot) fr Comment #6 Reply to this comment
I could have test the last cvs version but my platform of test is out 
of order.

On the other hands, it seems that ingo/lib/Scripts/maildrop.php has 
largely been rethougth. I tried to compare side by side the two files 
(old maildrop.php and new maildrop.php) and it takes too longer time .


09/16/09 Jan Schneider State ⇒ No Feedback
 
09/01/09 Jan Schneider Comment #5 Reply to this comment
Ping?
08/18/09 Jan Schneider Comment #4 Reply to this comment
Looks like the vacation code has been rewritten since the last 
release. Please try a recent snap shot.
08/18/09 Jan Schneider Comment #3
Patch ⇒
State ⇒ Feedback
Taken from Horde DevelopersHorde Developers
Reply to this comment
There is no such code in the maildrop driver.
07/28/09 noila (at) ajol (dot) com Comment #2 Reply to this comment
pick up tickets
04/16/09 Jan Schneider Patch ⇒ 1
State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
 
04/01/09 gerard (dot) breiner (at) ias (dot) u-psud (dot) fr Comment #1
State ⇒ Unconfirmed
Patch ⇒
Milestone ⇒
Queue ⇒ Ingo
Due ⇒ 04/01/09
Summary ⇒ Xfilter failed when the subject contains quote
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
Xfilter failed when a quote is contained in the subject.



I solved this by modifying ingo/lib/scripts/maildrop.php

It works by added a second quote.. I have commented  the bad line 
"xfilter ...." and  added the lines as follow.



[CODE]

$subject = MIME::encode($params['action-value']['subject'],NLS::getCharset());

                        $quote = "'";

                        $replace = "''";

                        $subject = str_replace($quote,$replace,$subject);



             //$xfilter = '  xfilter "reformail -r -t -I \'From: ' . 
$from . '\' -I \'Subject: ' . 
MIME::encode($params['action-value']['subject'], NLS::getCharset())  . 
"'";



         $xfilter = '  xfilter "reformail -r -t -I \'From: ' . $from . '\' -I 
\'Subject: ' .$subject. "'";

[/CODE]



Best regards



Gerard Breiner