diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 73184396d894a3..920d5b69478842 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -1128,6 +1128,9 @@ def _get_response(self): # Read trailer - possibly containing another literal dat = self._get_line() + # ignore blank line some servers send after the counted data + if dat == b'': + dat = self._get_line() self._append_untagged(typ, dat)