Browse Source

Attachment unsupported encoding

main
M66B 6 years ago
parent
commit
84453d0236
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      app/src/main/java/eu/faircode/email/MessageHelper.java

+ 7
- 1
app/src/main/java/eu/faircode/email/MessageHelper.java View File

@ -365,7 +365,13 @@ public class MessageHelper {
IOException, MessagingException {
List<EntityAttachment> result = new ArrayList<>();
Object content = part.getContent();
Object content;
try {
content = part.getContent();
} catch (UnsupportedEncodingException ex) {
Log.w(Helper.TAG, "attachment content type=" + part.getContentType());
content = part.getInputStream();
}
if (content instanceof InputStream || content instanceof String) {
String disposition;
try {


Loading…
Cancel
Save