Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
possible fix for halting and catching fire after ~10,000 messages
i was seeing imap2maildir spinning and eating all available memory after a few hours of operation. after review, i suspect it is because: in imaplib.IMAP4_SSL: def readline(self): line = [] while 1: char = self.sslobj.read(1) line.append(char) if char == "\n": return ''.join(line) in ssl.SSLSocket: def read(self, len=1024): try: return self._sslobj.read(len) except SSLError, x: if x.args[0] == SSL_ERROR_EOF and self.suppress_ragged_eofs: return '' else: raise guess what suppress_ragged_eofs defaults to, win a prize!
- Loading branch information