Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8bit messages created from stream are not converted to 7bit #100

Open
glassfishrobot opened this issue Feb 4, 2014 · 5 comments
Open

8bit messages created from stream are not converted to 7bit #100

glassfishrobot opened this issue Feb 4, 2014 · 5 comments

Comments

@glassfishrobot
Copy link

(Originally submitted to Sun bug system, transferred to Oracle bug system,
and finally here for resolution.
Originally submitted by sun@bago.org on 2006-08-02 18:22:38.)

EXTRA RELEVANT SYSTEM CONFIGURATION :
Input mail contains 8bit parts, remote server does not support 8bitmime

A DESCRIPTION OF THE PROBLEM :
Javamail smtp transport does not check the remote server to see wether it
supports 8bitmime before sending 8bit mails.
This is not a problem with messages created via apis, but it is an issue when
the message come from a stream and already contains 8bit chars.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a message from stream.
Be sure that this message contains a "Content-Transfer-Encoding: 8bit" and
8bit content.
Send it to an smtpserver that do not support the ESMTP 8BITMIME extension.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
When a MimeMessage is created from a stream, the stream contains 8bit
contents (Content-Transfer-Encoding: 8bit) and we send it to a remove server
not supporting 8bitmime Javamail should automatically convert the content to
7bit.

ACTUAL -
The message is not converted and is refused/corrupted by the remote server.

REPRODUCIBILITY :
This bug can be reproduced always.

Affected Versions

1.4.3

Environment

All
All

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by @bshannon

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@bshannon said:
It would be expensive to check every message for this issue since it
rarely happens. There's currently an option to convert 7bit messages
to 8bit when possible. It's a bit of a kludge, and not perfect, but
a similar approach could be considered for this case.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
javahollic said:
we're starting to see more and more 8bit mime messages, despite 8bit messages being illegal in SMTP use AFAIK. It would indeed be expensive to check a message recursively, however, as happens, I use the Message.writeTo anyway, we find this resolves quite a few syntax issues anyway, it would be perfect if this could also be made to convert the content to 7bit as it went.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from Bugzilla JAVAMAIL-6277

@glassfishrobot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants