summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/index.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-12-27 02:06:44 -0400
committerKali Kaneko <kali@leap.se>2014-01-08 20:32:08 -0400
commit25a0aea875fd0d67238beed1237f7239474673ec (patch)
treeafafe7eb7e18acf6420c29b88a8678070e997bcd /src/leap/mail/imap/index.py
parent62b0cd6301b7097dfa2776b677ab3c7d27f60d7b (diff)
First stage of the storage schema rewrite.
* Separates between flags, docs, body and attachment docs. * Implement IMessageCopier interface: move and have fun! This little change is known to push forward our beloved architect emotional rollercoster. * Message deduplication. * It also fixes a hidden bug that was rendering the multipart mime interface useless (yes, the "True" parameter in the parsestr method). * Does not handle well nested attachs, includes dirty workaround that flattens them. * Includes chiiph's patch for rc2: * return deferred from addMessage * convert StringIO types to string * remove unneeded yields from the chain of deferreds in fetcher
Diffstat (limited to 'src/leap/mail/imap/index.py')
-rw-r--r--src/leap/mail/imap/index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/mail/imap/index.py b/src/leap/mail/imap/index.py
index 2280d86..5f0919a 100644
--- a/src/leap/mail/imap/index.py
+++ b/src/leap/mail/imap/index.py
@@ -21,7 +21,7 @@ import logging
from leap.common.check import leap_assert, leap_assert_type
-from leap.mail.imap.account import SoledadBackedAccount
+from leap.mail.imap.fields import fields
logger = logging.getLogger(__name__)
@@ -54,7 +54,7 @@ class IndexedDB(object):
db_indexes = dict()
if self._soledad is not None:
db_indexes = dict(self._soledad.list_indexes())
- for name, expression in SoledadBackedAccount.INDEXES.items():
+ for name, expression in fields.INDEXES.items():
if name not in db_indexes:
# The index does not yet exist.
self._soledad.create_index(name, *expression)