Refactoring

This commit is contained in:
M66B 2022-11-01 16:10:45 +01:00
parent 4b1e519394
commit 32c15e7800
1 changed files with 6 additions and 7 deletions

View File

@ -3559,12 +3559,6 @@ public class MessageHelper {
throw new IllegalArgumentException("Attachment not found");
downloadAttachment(context, index, local);
if (Helper.isTnef(local.type, local.name))
decodeTNEF(context, local);
if ("msg".equalsIgnoreCase(Helper.getExtension(local.name)))
decodeOutlook(context, local);
}
void downloadAttachment(Context context, int index, EntityAttachment local) throws MessagingException, IOException {
@ -3945,7 +3939,12 @@ public class MessageHelper {
else
db.attachment().setWarning(local.id, Log.formatThrowable(ex));
}
}
} else if (Helper.isTnef(local.type, local.name))
decodeTNEF(context, local);
else if ("msg".equalsIgnoreCase(Helper.getExtension(local.name)))
decodeOutlook(context, local);
}
}