diff options
author | Kali Kaneko <kali@leap.se> | 2015-03-23 13:01:54 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-03-30 14:48:14 -0400 |
commit | 09979be91930c234975c6b3e621cb5791ec05260 (patch) | |
tree | bbe9263892702a8e4b2738d2dc6d3557d200868d | |
parent | f97104e25fe504993615f194825a757d4c381a24 (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.py | 15 |
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 |