diff options
author | drebs <drebs@leap.se> | 2013-06-13 16:22:16 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-07-22 14:46:29 -0300 |
commit | c55892d69a2a9b8873b979c37a8d17ddfad39560 (patch) | |
tree | 3a96b5870d4830b28bce2f989e94da88cea7d0eb /src/leap/mail/imap | |
parent | 9a5a325831230687a7da4ad5300c99f03aebba72 (diff) |
Adapt smtp relay to latest soledad and keymanager.
Diffstat (limited to 'src/leap/mail/imap')
-rw-r--r-- | src/leap/mail/imap/server.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/leap/mail/imap/server.py b/src/leap/mail/imap/server.py index 45c43b7..2b66ba6 100644 --- a/src/leap/mail/imap/server.py +++ b/src/leap/mail/imap/server.py @@ -772,7 +772,7 @@ class LeapMessage(WithMsgFields): return None -class MessageCollection(WithMsgFields): +class MessageCollection(WithMsgFields, IndexedDB): """ A collection of messages, surprisingly. @@ -795,6 +795,10 @@ class MessageCollection(WithMsgFields): WithMsgFields.RAW_KEY: "", } + # get from SoledadBackedAccount the needed index-related constants + INDEXES = SoledadBackedAccount.INDEXES + TYPE_IDX = SoledadBackedAccount.TYPE_IDX + def __init__(self, mbox=None, soledad=None): """ Constructor for MessageCollection. @@ -1131,8 +1135,7 @@ class SoledadMailbox(WithMsgFields): """ return map(str, self.INIT_FLAGS) - # TODO -- returning hardcoded flags for now, - # no need of setting flags. + # XXX CHECK against thunderbird XXX #mbox = self._get_mbox() #if not mbox: |