6.0.0-alpha12
6/7/25

[#13851] 8bit/binary Content-Transfer-Encoding should not be used via SMTP channel
Summary 8bit/binary Content-Transfer-Encoding should not be used via SMTP channel
Queue IMP
Queue Version 6.1.7
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester orvos.peter (at) microsec (dot) hu
Created 02/09/2015 (3771 days ago)
Due
Updated 02/10/2015 (3770 days ago)
Assigned
Resolved 02/10/2015 (3770 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/10/2015 07:58:43 AM orvos (dot) peter (at) microsec (dot) hu Comment #4 Reply to this comment
This was fixed long ago.  You are using an old version of IMP.
Thank you for the information; unfortunately I could not pinpoint out 
the problem and its solution in the change logs. In this case I inform 
the administrators of the ISP that they should upgrade. (BTW: I cannot 
imagine how they could start a new webmail interface with already such 
an old version...)

Once again, thank you.
02/10/2015 06:16:22 AM Michael Slusarz Comment #3
State ⇒ Not A Bug
Priority ⇒ 1. Low
Reply to this comment
This was fixed long ago.  You are using an old version of IMP.
02/09/2015 10:05:19 AM orvos (dot) peter (at) microsec (dot) hu Comment #2 Reply to this comment
The headers and the faulty line of such an email:

[Show Quoted Text - 59 lines]
The line-break had broken the name of an XML tag...
02/09/2015 10:01:16 AM orvos (dot) peter (at) microsec (dot) hu Comment #1
Priority ⇒ 3. High
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ 8bit/binary Content-Transfer-Encoding should not be used via SMTP channel
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
Sorry, if the problem has already been solved (6.1.7 is not the most 
recent of IMP), but I couldn't find such bug reports searching your 
tickets.

Our problem is, that an ISP started to use IMP as its webmail, and 
since that point we started to receive malformed attachment contents. 
The problem is that the XML based content is attached with 
Content-Transfer-Encoding: 8bit, while it contained lines longer than 
1000 characters.

Referring to Rfc 2045 (MIME):

[Show Quoted Text - 16 lines]
Accordingly 8bit and binary Content-Transfer-Encodings can be used for 
ex. HTTP POSTs, however these are not to be used if the transmission 
channel is SMTP, since Rfc 821 (SMTP) allows any SMTP servers to break 
lines longer than 1000 characters or convert bodies to 7bit by will. 
Since IMP is webmail client we might state that every MIME structures 
it creates will be transferred via SMTP, therefore the usage of 8bit 
and binary transfer-encodings are contraindicated.

Thx for your kind help!

Saved Queries