Small fix and comment for imap mailbox
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 2 Dec 2019 12:11:08 +0000 (13:11 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 13 Feb 2020 15:17:17 +0000 (16:17 +0100)
src/imap_mailbox.py

index a27f612..90be0ab 100644 (file)
@@ -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)