[Tickets #292] Horde/IMP handling of literal strings

bugs at bugs.horde.org bugs at bugs.horde.org
Mon Jun 14 07:10:10 PDT 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

-Ticket 292
-Queue: IMP
-Added By: imp at mavetju.org

>From imp at mavetju.org (Mon Jun 14 07:10:10 2004):
This fixes it in a beautiful way.

imp-3.2.4/lib/IMP.php.

     * @return string  The correctly quoted and escaped string.
     *
     * @since IMP 3.2.2
     */
    function _rfc822Encode($str, $filter = '')
    {
+        // strip double quotes if they are around the string already.
+        if (substr($str,0,1)=="\"" && substr($str,-1)=="\"")
+            $str=substr($str,1,-1);

        $filter .=
"()<>@,;:\\\"[]\1\2\3\4\5\6\7\10\11\12\13\14\15\16\17\20\21\2
2\23\24\25\26\27\30\31\32\33\34\35\36\37\177";
 
        if (strcspn($str, $filter) != strlen($str)) {


Please add this fix. People who use c-clients (like the imap-uw library)
which talk to imap servers which do return double quotes around addresses if
they were in the original email (like dbmail) would be happy to be able to
use Horde without problems.

Edwin
http://www.mavetju.org/





http://bugs.horde.org/details.php?id=292

-- 


More information about the bugs mailing list