[rt-devel] Tentative fix to attachment bug

Autrijus Tang autrijus at autrijus.org
Tue Apr 29 04:45:16 EDT 2003


On Mon, Apr 28, 2003 at 04:23:11PM +0800, Autrijus Tang wrote:
> so that it extracts the charset and pre-convert the whole mail
> to utfstring before POSTing it to the REST receiver, or add a
> special flag that inhibits utfstring conversion in autohandler,
> and let the REST handler to do the dirty work.

So I went with the latter approach after Jesse's approval.
This fix is tentative -- it should work, but hadn't been
tested outside Gedankenexperiment.  I'd appreciate if somebody
can verify it.

Thanks,
/Autrijus/

Change 5508 by autrijus at autribsd on 2003/04/29 08:26:34

        * fix utf8ification done in mail-gateway.

Affected files ...

... //depot/RT/rt/html/REST/1.0/NoAuth/mail-gateway#6 edit

Differences ...

==== //depot/RT/rt/html/REST/1.0/NoAuth/mail-gateway#6 (text) ====

@@ -31,6 +31,9 @@
 use RT::Interface::Email;
 my ( $status, $error, $Ticket ) = RT::Interface::Email::Gateway( %ARGS);
 </%init>
+<%flags>
+inherit => undef # inhibit UTF8 conversion done in /autohandler
+</%flags>
 %    if ($status) {
 ok
 %        if ( $Ticket->Id ) {



More information about the Rt-devel mailing list