|
|
@ -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));
|
|
|
|
}
|
|
|
|
}
|
|
|
|