1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Use correct sub-part of a multipart message when getting text.

946565347a passed 'this' to
getTextFromPart() which could be a multipart. This caused
all multipart messages to show 'No text' as the body.

Fix it by passing it the correct 'part' that was found.
This commit is contained in:
m0viefreak 2014-12-25 14:42:42 +01:00
parent fe8e779b32
commit e8c6a56fd2

View File

@ -130,7 +130,7 @@ public class LocalMessage extends MimeMessage {
}
} else {
// We successfully found an HTML part; do the necessary character set decoding.
text = MessageExtractor.getTextFromPart(this);
text = MessageExtractor.getTextFromPart(part);
}
return text;
}