1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Fix for Issue 238

Only fixes display of attachment filenames for newly downloaded
messages.  Will not correct display for message already in the
LocalStore.
This commit is contained in:
Daniel Applebaum 2009-01-24 19:35:57 +00:00
parent cf359c95ad
commit 7d5d473563

View File

@ -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);