Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d5d4735 authored by Daniel Applebaum's avatar Daniel Applebaum
Browse files

Fix for Issue 238

Only fixes display of attachment filenames for newly downloaded
messages.  Will not correct display for message already in the
LocalStore. 

parent cf359c95
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1077,7 +1077,11 @@ public class LocalStore extends Store implements Serializable {
                        MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA), ',');

            String name = MimeUtility.getHeaderParameter(attachment.getContentType(), "name");

            String contentDisposition = MimeUtility.unfoldAndDecode(attachment.getDisposition());
            if (name == null && contentDisposition != null)
            {
              name = MimeUtility.getHeaderParameter(contentDisposition, "filename");
            }
            if (attachmentId == -1) {
                ContentValues cv = new ContentValues();
                cv.put("message_id", messageId);