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 | 491f65f854736f1f113a288c6021397de0041412 (patch) | |
| tree | 21d1082f5f748efeb621e285efa00eb2b98e66f6 | |
| parent | 76c5a1b7d53fc0c5df0adbbd9382d0713494cea1 (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-- | mail/src/leap/mail/imap/mailbox.py | 15 | 
1 files changed, 11 insertions, 4 deletions
| diff --git a/mail/src/leap/mail/imap/mailbox.py b/mail/src/leap/mail/imap/mailbox.py index 61baca5..5d4e597 100644 --- a/mail/src/leap/mail/imap/mailbox.py +++ b/mail/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 | 
