[imp] problem with non ascii characters

Lasse Aagren aagren at mip.sdu.dk
Tue Jan 27 01:14:34 PST 2004


Hi list,

I have a problem with Imp on our Solaris system. We have a lot of
chinese students, and sometimes when they receive emails with certain
characters in the from address, their reply to this email can stall
our email virus scanning system (postfix/amavis/sophie/sophos).

As an example a chinese student got a mail, which when he clicked
reply in Imp became:

"Zhao\)ÕÔÑÒ\(Yan" <some at address.here>

in the to-field. This mail, when sent, stalls our mail-system. I've
made the following debug-patch to compose.php:

=================================================================
*** compose.php.orig    Tue Jul  8 21:40:20 2003
--- compose.php Tue Jan 27 09:54:50 2004
***************
*** 863,872 ****
--- 863,882 ----
           if (($irt = Horde::getFormData('in_reply_to'))) {
               $headers['In-Reply-To'] = $irt;
           }
+ 
+       $ttt = fopen("/home/SYSOP/php_tmp/DEBUG", 'a');
+       fwrite($ttt, "-mime: " . $headers['To'] . "\n");
+       fclose($ttt); 
+ 
           $headers = $mime->header($headers);
           $headers['User-Agent'] = 'Internet Messaging Program (IMP) ' . IMP_VERSION;
           IMP::addSiteHeaders($headers);
  
+       $ttt = fopen("/home/SYSOP/php_tmp/DEBUG", 'a');
+       fwrite($ttt, "+mime: " . $headers['To'] . "\n");
+       fclose($ttt); 
+ 
+ 
           include_once 'Mail.php';
           $params = IMP::prepareMailerParams();
           $mailer = &Mail::factory($conf['mailer']['type'], $params);
=================================================================

which prints some debug info before and after the header get's
mime-encoded. With the example from above, this prints the following
in the file:

-mime: "Zhao\)ÕÔÑÒ\(Yan" <lasse at aagren.org>
+mime: ""@

This doesn't seem right?  When this email, now with to-address ""@, is
running through our mail-system, it stalls.

We are running the following software:

horde-2.2.3
imp-3.2.2
php-4.3.4
apache_1.3.29

I hope you can help with our problem.

-- 
Lasse Aagren
Student Programmer
The Maersk Institute, University of Southern Denmark
Campusvej 55, DK-5230 Odense M, Denmark
Tel: +45 6550 3573  -  Fax: +45 6615 7697  -  http://www.mip.sdu.dk


More information about the imp mailing list