summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/mailbox.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-01-13 13:20:00 -0400
committerKali Kaneko <kali@leap.se>2014-01-13 13:20:00 -0400
commit51eaab77deedf0c923fe40cf3d346fa879bf2ae3 (patch)
tree6650583e59baf09ceca794ecc6ba080d6c7aaa62 /src/leap/mail/imap/mailbox.py
parent2d77a64c7cf3e70070e25af4ef75af7de7a3a5b1 (diff)
Add check for uniqueness when adding mails.
Check by mbox + content-hash
Diffstat (limited to 'src/leap/mail/imap/mailbox.py')
-rw-r--r--src/leap/mail/imap/mailbox.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py
index 7c01490..c9e8684 100644
--- a/src/leap/mail/imap/mailbox.py
+++ b/src/leap/mail/imap/mailbox.py
@@ -125,7 +125,7 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
def addListener(self, listener):
"""
- Adds a listener to the listeners queue.
+ Add a listener to the listeners queue.
The server adds itself as a listener when there is a SELECT,
so it can send EXIST commands.
@@ -137,7 +137,7 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
def removeListener(self, listener):
"""
- Removes a listener from the listeners queue.
+ Remove a listener from the listeners queue.
:param listener: listener to remove
:type listener: an object that implements IMailboxListener
@@ -146,7 +146,7 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
def _get_mbox(self):
"""
- Returns mailbox document.
+ Return mailbox document.
:return: A SoledadDocument containing this mailbox, or None if
the query failed.