|
|
@ -2165,7 +2165,8 @@ public class MessageHelper {
|
|
|
|
db.attachment().setDownloaded(attachment.id, (long) body.length());
|
|
|
|
db.attachment().setDownloaded(attachment.id, (long) body.length());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for (org.apache.poi.hmef.Attachment at : msg.getAttachments()) {
|
|
|
|
for (org.apache.poi.hmef.Attachment at : msg.getAttachments())
|
|
|
|
|
|
|
|
try {
|
|
|
|
String filename = at.getLongFilename();
|
|
|
|
String filename = at.getLongFilename();
|
|
|
|
if (filename == null)
|
|
|
|
if (filename == null)
|
|
|
|
filename = at.getFilename();
|
|
|
|
filename = at.getFilename();
|
|
|
@ -2190,6 +2191,9 @@ public class MessageHelper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
db.attachment().setDownloaded(attachment.id, (long) data.length);
|
|
|
|
db.attachment().setDownloaded(attachment.id, (long) data.length);
|
|
|
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
|
|
|
// java.lang.IllegalArgumentException: Attachment corrupt - no Data section
|
|
|
|
|
|
|
|
Log.e(ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|