[ 
http://issues.apache.org/jira/browse/JAMES-52?page=comments#action_12377873 ] 

Stefano Bagnara commented on JAMES-52:
--------------------------------------

Here is an explanation I sent to the list. May be useful later so I archive 
this with the 8bitmime feature request
---------------------------------------------------------------

Apparently Sun is not able to workaround to its own bugs:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4403733

When we have control of the getContent/setContent (see AddHeader mailet) we 
already have a workaround for this, but this time the problem is in the 
SMTPTransport and we cannot do much for that.

----

Create a new MimeMessage from an 8bit file using a sharedinputstream (not sure 
this happens with all inputstreams or only sharedinputstreams, I don't 
remember).
Send it to an smtp server not supporting 8bitmime.

Create a new MimeMessage from a 7bit file using an inputstream.
Send it to an smtp server supporting 8bitmime and activating the 8bitmime 
support in the mail session.

If you want to investigate on this look at the SMTPTransport.convertTo8bit 
method from javamail 1.3.2 (I have not checked 1.4 sources yet).

1) There are NPE problems when you have messages with no encoding

2) It furthermore changes the headers of mime parts without calling a new 
setContent.

Once you workaround to the enconding issue by manually checking that each 
message has an encoding, you will find that output messages have updated 
headers but UNCHANGED contents.

So you end up sending quotedprintable content with 8bit/text-plain headers 
(corrupted) and viceversa.

All works fine when you create the message from scratch and not from 
inputstreams.

Stefano


> 8bitmime capabilities missing
> -----------------------------
>
>          Key: JAMES-52
>          URL: http://issues.apache.org/jira/browse/JAMES-52
>      Project: James
>         Type: Improvement

>   Components: SMTPServer
>     Versions: 2.0a3, 2.1.3, 2.2.0
>  Environment: Operating System: All
> Platform: All
>     Reporter: brady moritz
>     Assignee: Stefano Bagnara
>      Fix For: 2.3.0a1

>
> I am using an IIS front end server which forwards email to the james backend 
> server. The front server accepts 8bitmime messages but then cannot forward 
> them 
> to the james server, resulting in an error message being sent to the 
> admininstrator(me). It should be a simple matter to add support for 8 bit and 
> it may even be supported intrinsicly, but the james server does nont 
> advertise 
> it via the EHLO commannd.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to