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 "Mirko Montanari (JIRA)" <se...@james.apache.org> on 2005/09/05 10:58:32 UTC
[jira] Updated: (JAMES-419) NPE during 8bit conversion of non-mime messages
[ http://issues.apache.org/jira/browse/JAMES-419?page=all ]
Mirko Montanari updated JAMES-419:
----------------------------------
Attachment: patch.txt
This issue appears to be a javamail bug: if the allow8bitmime property is set the sun's SMTPTransport checks the message to decide which encoding use to send it. If the encoding information of a text mimepart is missing a null pointer exception is thrown.
The attached patch is a workaround for that: it adds the header "Content-Transfert-Encoding: 7bit" to all the text mime part where no encoding information is given.
> NPE during 8bit conversion of non-mime messages
> -----------------------------------------------
>
> Key: JAMES-419
> URL: http://issues.apache.org/jira/browse/JAMES-419
> Project: James
> Type: Bug
> Components: Remote Delivery
> Versions: 2.3.0
> Reporter: Stefano Bagnara
> Assignee: Soren Hilmer
> Attachments: patch.txt
>
> Just sending a message with no mime informations:
> ---------------
> Received: from localhost ([127.0.0.1])
> by BAGOMIPS (JAMES SMTP Server 2.3-dev) with SMTP ID 254;
> Sat, 3 Sep 2005 18:23:04 +0200 (CEST)
> Subject: test
> Date: Sat, 3 Sep 2005 18:23:04 +0200 (CEST)
> From: test@test.org
> test
> .
> -----------
> 03/09/05 18:23:07 INFO James.Mailet: RemoteDelivery: Exception caught in RemoteDelivery.run()
> java.lang.NullPointerException
> at com.sun.mail.smtp.SMTPTransport.convertTo8Bit(SMTPTransport.java:702)
> at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:521)
> at org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:521)
> at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:1050)
> at java.lang.Thread.run(Thread.java:534)
> -----------
--
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