[imp] Drafts: 8-bit characters in subject

Michael M Slusarz slusarz at bigworm.colorado.edu
Thu Mar 25 08:54:43 PST 2004


Quoting Tero Matinlassi <tero.matinlassi at edu.vantaa.fi>:

> 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)) {

Committed - thanks.

michael

______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the imp mailing list