mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28:50 -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:
parent
a1f8a2ca7d
commit
6480e78b97
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user