1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-13 06:38:05 -05:00

r1396 caused trouble for some clients due to a missing "MIME-Version" header. This should fix the problem.

This commit is contained in:
cketti 2010-02-04 17:28:35 +00:00
parent a1f8a2ca7d
commit 6480e78b97

View File

@ -368,12 +368,12 @@ public class MimeMessage extends Message
public void setBody(Body body) throws MessagingException public void setBody(Body body) throws MessagingException
{ {
this.mBody = body; this.mBody = body;
setHeader("MIME-Version", "1.0");
if (body instanceof com.fsck.k9.mail.Multipart) if (body instanceof com.fsck.k9.mail.Multipart)
{ {
com.fsck.k9.mail.Multipart multipart = ((com.fsck.k9.mail.Multipart)body); com.fsck.k9.mail.Multipart multipart = ((com.fsck.k9.mail.Multipart)body);
multipart.setParent(this); multipart.setParent(this);
setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType());
setHeader("MIME-Version", "1.0");
} }
else if (body instanceof TextBody) else if (body instanceof TextBody)
{ {