From: Christian Herdtweck Date: Mon, 2 Dec 2019 12:11:08 +0000 (+0100) Subject: Small fix and comment for imap mailbox X-Git-Tag: v1.6.4~1 X-Git-Url: http://developer.intra2net.com/git/?p=pyi2ncommon;a=commitdiff_plain;h=1ddcd5fe5f61fdb55526ed3b0834f9baa243089b Small fix and comment for imap mailbox --- diff --git a/src/imap_mailbox.py b/src/imap_mailbox.py index a27f612..90be0ab 100644 --- a/src/imap_mailbox.py +++ b/src/imap_mailbox.py @@ -36,6 +36,9 @@ Features provided in addition to :py:class:`imaplib.IMAP4`:: * deal with some of the variability of returned values from `fetch` command * created email message objects from byte data +TODO: + * use SSL connection per default, unencrypted only as option + Copyright: Intra2net AG @@ -299,7 +302,7 @@ class ImapMailbox(imaplib.IMAP4): :rtype: bytes """ self._select(folder) - self._clear_unsolicited_responses('SEARCH') + self._clear_unsolicited_responses('FETCH') typ, data = super(ImapMailbox, self).fetch(str(message_id), part) if typ != 'OK': raise ImapError('fetch', typ, data)