Use MimeMessageHelper.setBody() when parsing BODYSTRUCTURE

This will correctly set the MIME type of the part containing the body.
Otherwise multiparts end up having a content type of text/plain (default)
in the database... oops.
This commit is contained in:
cketti 2015-01-22 11:59:06 +01:00
parent d2d85393d3
commit 74d09943c0
1 changed files with 1 additions and 1 deletions

View File

@ -1710,7 +1710,7 @@ public class ImapStore extends RemoteStore {
break;
}
}
part.setBody(mp);
MimeMessageHelper.setBody(part, mp);
} else {
/*
* This is a body. We need to add as much information as we can find out about