1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-16 22:45:04 -05:00

May have some beneficial impact on Issue 21 and Issue 799.

Just removes the base64 encoding on the text/plain body parts.  Does
not make the sent messages non-multipart.
This commit is contained in:
Daniel Applebaum 2010-01-31 15:26:02 +00:00
parent c38384e134
commit a91e3e10e2
3 changed files with 7 additions and 3 deletions

View File

@ -91,7 +91,7 @@ public class MimeBodyPart extends BodyPart
//using org.apache.commons.codec.net.QuotedPrintableCodec
//when it will implement all rules (missing #3, $4 & #5) of the RFC
//http://www.ietf.org/rfc/rfc1521.txt
setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64");
// setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64");
}
}

View File

@ -379,7 +379,8 @@ public class MimeMessage extends Message
{
setHeader(MimeHeader.HEADER_CONTENT_TYPE, String.format("%s;\n charset=utf-8",
getMimeType()));
setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64");
// TODO: Should this be quoted-printable?
// setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64");
}
}

View File

@ -21,7 +21,10 @@ public class TextBody implements Body
if (mBody!=null)
{
byte[] bytes = mBody.getBytes("UTF-8");
out.write(Base64.encodeBase64Chunked(bytes));
out.write(bytes);
// TODO: Should this be quoted-printable?
//out.write(Base64.encodeBase64Chunked(bytes));
}
}