summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/mailbox.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-03-02 11:49:35 -0400
committerKali Kaneko <kali@leap.se>2015-03-03 14:30:10 -0400
commit91115f6bc8430fbef03b5e8e7e3975e5846eb50f (patch)
tree68e4c0de4b45cd78bc372be57af9dcbd93afb171 /src/leap/mail/imap/mailbox.py
parent6b3a4017861df498f99ea62ce9de41ecf7caf12b (diff)
[refactor] remove dead code in IMAP implementation
while updating the tests, I found that IMAPMessageCollection was not actually being used: all the work is done in IMAPMailbox, using directly the MessageCollection instance. So, this extra level of abstraction was finally not used. Releases: 0.9.0
Diffstat (limited to 'src/leap/mail/imap/mailbox.py')
-rw-r--r--src/leap/mail/imap/mailbox.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py
index 2653ae4..91c6549 100644
--- a/src/leap/mail/imap/mailbox.py
+++ b/src/leap/mail/imap/mailbox.py
@@ -82,9 +82,9 @@ class IMAPMailbox(object):
A Soledad-backed IMAP mailbox.
Implements the high-level method needed for the Mailbox interfaces.
- The low-level database methods are contained in IMAPMessageCollection
- class, which we instantiate and make accessible in the `messages`
- attribute.
+ The low-level database methods are contained in the generic
+ MessageCollection class. We receive an instance of it and it is made
+ accessible in the `collection` attribute.
"""
implements(
imap4.IMailbox,
@@ -107,14 +107,13 @@ class IMAPMailbox(object):
def __init__(self, collection, rw=1):
"""
- :param collection: instance of IMAPMessageCollection
- :type collection: IMAPMessageCollection
+ :param collection: instance of MessageCollection
+ :type collection: MessageCollection
:param rw: read-and-write flag for this mailbox
:type rw: int
"""
self.rw = rw
-
self._uidvalidity = None
self.collection = collection