From 1ddcd5fe5f61fdb55526ed3b0834f9baa243089b Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Mon, 2 Dec 2019 13:11:08 +0100 Subject: [PATCH] Small fix and comment for imap mailbox --- src/imap_mailbox.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) 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) -- 1.7.1