You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2006/09/27 10:43:51 UTC

[jira] Commented: (JAMES-638) Wrong default encoding in text message (Autoconverted: from 8bit to quoted-printable)

    [ http://issues.apache.org/jira/browse/JAMES-638?page=comments#action_12438067 ] 
            
Stefano Bagnara commented on JAMES-638:
---------------------------------------

Yes, this seems a bug. Not sure if the bug is in James or in Javamail.
And this is probably related to JAMES-52.

The problem here seems to be that the remote site does not support 8bitmime so James try to make sure the message is 7bit and call its own convertTo7bit. The convert to 7bit simply change the headers for the message to include quoted-printable. This was an hack for a bug in javamail and most time will not change the content because we temporarily disabled 8bitmime and messages received by james are not 8bit.

The problem is that this message has no Content-Type/Content-Transfer-Encoding specification by default and adding quoted-printable "corrupt" the plain text body.

This is related to this javamail bugs (I opened all of them):
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6456415
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6456422
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6456444

At a glance we probably hit a bad/misbehaving part of javamail with this issue: I'm not sure wether we should try to find a fix/workaround now or try to wait for javamail 1.4.1!

PS: this bug is probably also in 2.3.0!

> Wrong default encoding in text message (Autoconverted: from 8bit to quoted-printable)
> -------------------------------------------------------------------------------------
>
>                 Key: JAMES-638
>                 URL: http://issues.apache.org/jira/browse/JAMES-638
>             Project: James
>          Issue Type: Bug
>    Affects Versions: Trunk
>         Environment: James 3.0, Linux
>            Reporter: Guillermo Grandes
>
> Sending mail throught James to a second server (james as relay) make a wrong conversion of charset, I suppose that 8bit to quoted printable, the route of this mail is: sendmail(orig) -> james(relay) -> exchange(final)
> Input DATA (to James from sendmail):
> Date: Wed, 27 Sep 2006 01:05:07 +0200
> From: user@domain
> Message-Id: <20...@domain>
> Subject: Jelou dolly
> 2006-09-27 00:58:34 -> 2006-09-27 01:05:07
> mymoney=238
> yourmoney=162
> diff=31%(76)
> Received DATA (received in Exchange from James)
> Microsoft Mail Internet Headers Version 2.0
> Content-Transfer-Encoding: quoted-printable
> X-MIME-Autoconverted: from 8bit to quoted-printable by Apache JAMES
> Message-ID: <19...@domain>
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Date: Wed, 27 Sep 2006 01:05:07 +0200
> From: user@domain
> Subject: Jelou dolly
> Return-Path: user@domain
> X-OriginalArrivalTime: 26 Sep 2006 23:05:09.0546 (UTC) FILETIME=[36C490A0:01C6E1C0]
> 2006-09-27 00:58:34 -> 2006-09-27 01:05:07
> mymoney#8
> yourmoney2
> diff%(76)
> If James is bypassed (usign IIS-SMTP-Relay instead of James), the body is OK, like this:
> Microsoft Mail Internet Headers Version 2.0
> content-class: urn:content-classes:message
> Date: Tue, 26 Sep 2006 01:02:04 +0200
> From: <us...@domain>
> Message-ID: <20...@domain>
> Subject: Jelou dolly
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
> Return-Path: <us...@domain>
> X-OriginalArrivalTime: 25 Sep 2006 23:05:07.0593 (UTC) FILETIME=[0B30CF90:01C6E0F7]
> 2006-09-26 00:48:13 -> 2006-09-26 01:02:04
> mymoney=120
> yourmoney=80
> diff=33%(40)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org