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
1 changed files with 1 additions and 1 deletions

View File

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