[imp] Drafts: 8-bit characters in subject

Tero Matinlassi tero.matinlassi at edu.vantaa.fi
Fri Mar 12 07:45:20 PST 2004


When saving a draft, message subject was not encoded and with Cyrus
IMAPd we've all 8-bit characters showing as 'X' in the subject.

This little patch (against IMP 3.2.2) fixes it for me. (Should apply to
3.2.3 also, since there's no changes in compose.php between these
releases).


--- compose.php.orig    2004-03-12 17:31:36.000000000 +0200
+++ compose.php 2004-03-12 17:32:05.000000000 +0200
@@ -973,6 +973,7 @@
              $hdrs .= "Bcc: $bcc\n";
          }
          if (($sub = Horde::getFormData('subject'))) {
+             $sub = MIME::encode($sub, Lang::getCharset());
              $hdrs .= "Subject: $sub\n";
          }
          if (isset($mime)) {




-- 
Tero Matinlassi


More information about the imp mailing list