Non-image inline attachments not shown in client: Closes #5748

This processes existing email for inline attachments and adds them
to the attachments table, doing the same for new mail as it arrives.
This commit is contained in:
Avi Levy 2013-07-19 16:28:56 -07:00 committed by Jim Nelson
parent 14b9343da3
commit 6867987074
9 changed files with 186 additions and 33 deletions

9
sql/version-013.sql Normal file
View file

@ -0,0 +1,9 @@
--
-- Add the disposition column as a string so the client can decide which attachments to show.
-- Since all attachments up to this point have been non-inline, set it to that value (which
-- is defined in src/engine/api/geary-attachment.vala
--
ALTER TABLE MessageAttachmentTable ADD COLUMN disposition INTEGER;
UPDATE MessageAttachmentTable SET disposition=0;