1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Revert r1386 because it will break many folks email sending.

This commit is contained in:
Daniel Applebaum 2010-01-31 19:11:51 +00:00
parent d114fa1bc3
commit ef1abffa26
3 changed files with 3 additions and 7 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,8 +379,7 @@ public class MimeMessage extends Message
{
setHeader(MimeHeader.HEADER_CONTENT_TYPE, String.format("%s;\n charset=utf-8",
getMimeType()));
// TODO: Should this be quoted-printable?
// setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64");
setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64");
}
}

View File

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