Displaying 2 results from an estimated 2 matches for "error_proto".
2015 Apr 08
2
pop3 retr responses too large lines - Fails with current python's poplib
Since December 2014, clients using the Python poplib library (getmail in
my case) started to limit the line length of RETR and other command
responses sent from the server to 2048 bytes:
See https://bugs.python.org/issue16041 (Included at least in
Python-2.7.9)
Dovecot doesn't have line split in the POP3 module, so Python fails to
retrieve messages with long lines.
RFC 1939 says:
"
2015 Apr 10
2
pop3 retr responses too large lines - Fails with current python's poplib
...Changing this could break things like PGP/SMIME signing and so on.
So there is no way to break the lines without breaking the message?
Please note that if you are right, I should post a bug on the Python
project.
You can see in this "traceforward" that Python's poplib will throw an
error_proto exception if RETR returns lines longer than 2048 bytes:
https://hg.python.org/cpython/file/0db36098b908/Lib/poplib.py#l227
https://hg.python.org/cpython/file/0db36098b908/Lib/poplib.py#l165
https://hg.python.org/cpython/file/0db36098b908/Lib/poplib.py#l142
https://hg.python.org/cpython/file/0db360...