mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +00:00
Body text is not an attachment
This commit is contained in:
parent
b92819222a
commit
bf9ce3e9df
1 changed files with 10 additions and 1 deletions
|
@ -519,7 +519,16 @@ public class MessageHelper {
|
|||
}
|
||||
|
||||
private static String getHtml(Part part) throws MessagingException, IOException {
|
||||
if (part.isMimeType("text/plain") || part.isMimeType("text/html")) {
|
||||
String disposition;
|
||||
try {
|
||||
disposition = part.getDisposition();
|
||||
} catch (MessagingException ex) {
|
||||
Log.w(ex);
|
||||
disposition = null;
|
||||
}
|
||||
|
||||
if (!Part.ATTACHMENT.equalsIgnoreCase(disposition) &&
|
||||
(part.isMimeType("text/plain") || part.isMimeType("text/html"))) {
|
||||
String s;
|
||||
try {
|
||||
Object content = part.getContent();
|
||||
|
|
Loading…
Reference in a new issue