jakartaee / jakartaee/mail-api

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

Open
#100 5 comments 0 reactions 1 assignee Claimed by @bshannon View on GitHub
Component: smtp minor Priority: P5
Dominant language
Java
Stars
285
Forks
109
Avg merge
15h 19m
Merged PRs (30d)
1

Description

(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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.