summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-03-23 13:01:54 -0400
committerKali Kaneko <kali@leap.se>2015-03-30 14:48:14 -0400
commit09979be91930c234975c6b3e621cb5791ec05260 (patch)
treebbe9263892702a8e4b2738d2dc6d3557d200868d
parentf97104e25fe504993615f194825a757d4c381a24 (diff)
[bug] temporary workaround to allow display on some muas
Until we implement sequences, this avoids breaking with certain MUAs like mutt. Releases: 0.4.0
-rw-r--r--src/leap/mail/imap/mailbox.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py
index 61baca5..5d4e597 100644
--- a/src/leap/mail/imap/mailbox.py
+++ b/src/leap/mail/imap/mailbox.py
@@ -500,9 +500,9 @@ class IMAPMailbox(object):
is_sequence = True if uid == 0 else False
# XXX DEBUG --- if you attempt to use the `getmail` utility under
- # imap/tests, it will choke until we implement sequence numbers. This
- # is an easy hack meanwhile.
- # is_sequence = False
+ # imap/tests, or muas like mutt, it will choke until we implement
+ # sequence numbers. This is an easy hack meanwhile.
+ is_sequence = False
# -----------------------------------------------------------------
getmsg = self.collection.get_message_by_uid
@@ -581,7 +581,14 @@ class IMAPMailbox(object):
MessagePart.
:rtype: tuple
"""
- is_sequence = True if uid == 0 else False
+ # is_sequence = True if uid == 0 else False
+
+ # XXX FIXME -----------------------------------------------------
+ # imap/tests, or muas like mutt, it will choke until we implement
+ # sequence numbers. This is an easy hack meanwhile.
+ is_sequence = False
+ # ---------------------------------------------------------------
+
if is_sequence:
raise NotImplementedError