Further work toward persisting messages locally (#3742).
This iteration now stores headers locally and fetches them first before going to the network. Work done in the database to deal with IMAPisms. More work on the GMime bindings (couple of mistakes in prior commit).
This commit is contained in:
parent
2fbe93afce
commit
4ccabcbd3e
27 changed files with 651 additions and 300 deletions
|
|
@ -50,7 +50,7 @@ CREATE TABLE MessageLocationTable (
|
|||
id INTEGER PRIMARY KEY,
|
||||
message_id INTEGER REFERENCES MessageTable ON DELETE CASCADE,
|
||||
folder_id INTEGER REFERENCES FolderTable ON DELETE CASCADE,
|
||||
ordering INTEGER
|
||||
position INTEGER
|
||||
);
|
||||
|
||||
CREATE INDEX MessageLocationTableMessageIDIndex ON MessageLocationTable(message_id);
|
||||
|
|
@ -92,3 +92,15 @@ CREATE TABLE ImapMessagePropertiesTable (
|
|||
|
||||
CREATE INDEX ImapMessagePropertiesTableMessageIDIndex ON ImapMessagePropertiesTable(message_id);
|
||||
|
||||
--
|
||||
-- ImapMessageLocationPropertiesTable
|
||||
--
|
||||
|
||||
CREATE TABLE ImapMessageLocationPropertiesTable (
|
||||
id INTEGER PRIMARY KEY,
|
||||
location_id INTEGER UNIQUE REFERENCES MessageLocationTable ON DELETE CASCADE,
|
||||
uid INTEGER
|
||||
);
|
||||
|
||||
CREATE INDEX ImapMessageLocationPropertiesTableLocationIDIndex ON ImapMessageLocationPropertiesTable(location_id);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue