POP3 RETR drops the message body (returns empty message) #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
IMAPBackend.fetch_message (proxy_server.py:119) filters the imaplib FETCH response to top-level bytes only:
Real imaplib returns the RFC822 literal inside a tuple, e.g.
The tuple is not
bytes, so the body in tuple[1] is discarded and the client receives only the trailing b")". RETR is therefore broken against any real IMAP server.The existing unit test passes only because DummyIMAP returns a flat list of bytes, which imaplib never produces.
Fix:
Acceptance: