mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 01:36:55 +00:00
Attachment unsupported encoding
This commit is contained in:
parent
e9fa880c72
commit
84453d0236
1 changed files with 7 additions and 1 deletions
|
@ -365,7 +365,13 @@ public class MessageHelper {
|
||||||
IOException, MessagingException {
|
IOException, MessagingException {
|
||||||
List<EntityAttachment> result = new ArrayList<>();
|
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) {
|
if (content instanceof InputStream || content instanceof String) {
|
||||||
String disposition;
|
String disposition;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue