mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Simplification
This commit is contained in:
parent
ee7250ff55
commit
223c436401
1 changed files with 2 additions and 1 deletions
|
@ -477,11 +477,12 @@ public class MessageHelper {
|
|||
|
||||
String getSubject() throws MessagingException, UnsupportedEncodingException {
|
||||
String subject = imessage.getSubject();
|
||||
if (subject != null && subject.indexOf("=?") >= 0) {
|
||||
if (subject != null && subject.contains("=?")) {
|
||||
String prev;
|
||||
do {
|
||||
prev = subject;
|
||||
subject = MimeUtility.decodeText(subject);
|
||||
Log.i("Mime decode " + prev + " -> " + subject);
|
||||
}
|
||||
while (!subject.equals(prev));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue