1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 22:51:02 +00:00

Simplification

This commit is contained in:
M66B 2019-01-14 18:26:20 +00:00
parent ee7250ff55
commit 223c436401

View file

@ -477,11 +477,12 @@ public class MessageHelper {
String getSubject() throws MessagingException, UnsupportedEncodingException { String getSubject() throws MessagingException, UnsupportedEncodingException {
String subject = imessage.getSubject(); String subject = imessage.getSubject();
if (subject != null && subject.indexOf("=?") >= 0) { if (subject != null && subject.contains("=?")) {
String prev; String prev;
do { do {
prev = subject; prev = subject;
subject = MimeUtility.decodeText(subject); subject = MimeUtility.decodeText(subject);
Log.i("Mime decode " + prev + " -> " + subject);
} }
while (!subject.equals(prev)); while (!subject.equals(prev));
} }