summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-01-27 11:19:14 -0400
committerKali Kaneko <kali@leap.se>2015-02-11 14:05:44 -0400
commitd8b078504b522add8542ebe3bdbe4da39e4ffaac (patch)
tree741ebbc13aa8cf9bf0b21a30aecfa745faae5577
parenta4305a4a57afb9a84fb56b6031947a3d2a717973 (diff)
rename lingering , that is ambiguous
-rw-r--r--src/leap/mail/imap/mailbox.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py
index be7f70c..c91f127 100644
--- a/src/leap/mail/imap/mailbox.py
+++ b/src/leap/mail/imap/mailbox.py
@@ -521,7 +521,7 @@ class IMAPMailbox(object):
getmsg = self.collection.get_message_by_uid
getimapmsg = self.get_imap_message
- def get_imap_messages_for_sequence(msg_sequence):
+ def get_imap_messages_for_range(msg_range):
def _get_imap_msg(messages):
d_imapmsg = []
@@ -531,7 +531,7 @@ class IMAPMailbox(object):
def _zip_msgid(imap_messages):
zipped = zip(
- list(msg_sequence), imap_messages)
+ list(msg_range), imap_messages)
return (item for item in zipped)
def _unset_recent(sequence):
@@ -539,7 +539,7 @@ class IMAPMailbox(object):
return sequence
d_msg = []
- for msgid in msg_sequence:
+ for msgid in msg_range:
# XXX We want cdocs because we "probably" are asked for the
# body. We should be smarted at do_FETCH and pass a parameter
# to this method in order not to prefetch cdocs if they're not
@@ -558,7 +558,7 @@ class IMAPMailbox(object):
else:
d = self._get_messages_range(messages_asked)
- d.addCallback(get_imap_messages_for_sequence)
+ d.addCallback(get_imap_messages_for_range)
# TODO -- call signal_to_ui
# d.addCallback(self.cb_signal_unread_to_ui)