[ https://issues.apache.org/jira/browse/MIME4J-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615176#action_12615176 ]
Stefano Bagnara commented on MIME4J-59: --------------------------------------- I see you're working on this: I had to change CodecUtil this way, maybe it helps you (or double check your work). ------------- private void escape(byte next) throws IOException { if (--nextSoftBreak <= QUOTED_PRINTABLE_OCTETS_PER_ESCAPE) { softBreak(); } >>> int nextUnsigned = next; >>> if (nextUnsigned < 0) nextUnsigned += 256; write(EQUALS); --nextSoftBreak; write(HEX_DIGITS[nextUnsigned >> 4]); --nextSoftBreak; write(HEX_DIGITS[nextUnsigned % 0x10]); } --------------------- But I'm not sure we should use a BinaryQuotedPrintableEncoder to make a text quoted printable. E.g: this replace every SPACE to "=20", instead in a text translation this would be needed only if the space is at the end of a line. I don't know if this is an RFC requirement or if we simply can add a "Wish" JIRA issue for this. > Quoted-Printable encoded body no more decoded > --------------------------------------------- > > Key: MIME4J-59 > URL: https://issues.apache.org/jira/browse/MIME4J-59 > Project: Mime4j > Issue Type: Bug > Affects Versions: 0.4 > Reporter: Stefano Bagnara > Fix For: 0.4 > > Attachments: qp-body.msg, qp-body_decoded.xml, > simple-7bit-body_decoded_1.txt > > > I'm not sure when this happened but it seems we are no more decoding quoted > printable content. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]