Added attachment size/progress

This commit is contained in:
M66B
2018-08-04 10:32:34 +00:00
parent e5a475379b
commit 0c53244342
7 changed files with 760 additions and 35 deletions

View File

@@ -313,7 +313,10 @@ public class MessageHelper {
attachment.sequence = result.size() + 1;
attachment.name = part.getFileName();
attachment.type = ct.getBaseType();
attachment.size = part.getSize();
attachment.part = part;
if (attachment.size < 0)
attachment.size = null;
result.add(attachment);
}
} else if (content instanceof Multipart) {