diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-04 10:57:49 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-04 14:45:47 -0400 |
commit | 23e28bae2c3cb74e00e29ee8add0b73adeb65c2b (patch) | |
tree | eec0561e2184472dfedba3135a3d005efd478c34 /src/leap/mail/imap/memorystore.py | |
parent | 8201146254a204fec92395bf497a2a6f76274b85 (diff) |
fixes after review
* Some more docstring completion/fixes.
* Removed unneeded str coertion.
* Handle mailbox name in logs.
* Separate manhole boilerplate into its own file.
Diffstat (limited to 'src/leap/mail/imap/memorystore.py')
-rw-r--r-- | src/leap/mail/imap/memorystore.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/mail/imap/memorystore.py b/src/leap/mail/imap/memorystore.py index 0632d1c..195cef7 100644 --- a/src/leap/mail/imap/memorystore.py +++ b/src/leap/mail/imap/memorystore.py @@ -475,12 +475,13 @@ class MemoryStore(object): def get_last_uid(self, mbox): """ - Get the highest UID for a given mbox. + Return the highest UID for a given mbox. It will be the highest between the highest uid in the message store for the mailbox, and the soledad integer cache. :param mbox: the mailbox :type mbox: str or unicode + :rtype: int """ uids = self.get_uids(mbox) last_mem_uid = uids and max(uids) or 0 |