Implemented IMAP-specific folder and message properties tables: #3805
This commit adds support for IMAP-specific properties, of which UIDValidity is crucial toward completing #3805. The additional code is to integrate these tables into the SQLite Geary backend and to make sure this information is requested from the IMAP server. NOTE: This commit changes the database schema. Old databases will need to be blown away before running.
This commit is contained in:
parent
9792780edb
commit
6b8951bfd8
30 changed files with 496 additions and 99 deletions
|
|
@ -69,8 +69,7 @@ CREATE TABLE ImapFolderPropertiesTable (
|
|||
id INTEGER PRIMARY KEY,
|
||||
folder_id INTEGER UNIQUE REFERENCES FolderTable ON DELETE CASCADE,
|
||||
uid_validity INTEGER,
|
||||
supports_children INTEGER,
|
||||
is_openable INTEGER
|
||||
attributes TEXT
|
||||
);
|
||||
|
||||
CREATE INDEX ImapFolderPropertiesTableFolderIDIndex ON ImapFolderPropertiesTable(folder_id);
|
||||
|
|
@ -82,13 +81,7 @@ CREATE INDEX ImapFolderPropertiesTableFolderIDIndex ON ImapFolderPropertiesTable
|
|||
CREATE TABLE ImapMessagePropertiesTable (
|
||||
id INTEGER PRIMARY KEY,
|
||||
message_id INTEGER UNIQUE REFERENCES MessageTable ON DELETE CASCADE,
|
||||
answered INTEGER,
|
||||
deleted INTEGER,
|
||||
draft INTEGER,
|
||||
flagged INTEGER,
|
||||
recent INTEGER,
|
||||
seen INTEGER,
|
||||
all_flags TEXT
|
||||
flags TEXT
|
||||
);
|
||||
|
||||
CREATE INDEX ImapMessagePropertiesTableMessageIDIndex ON ImapMessagePropertiesTable(message_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue