Control: retitle 782614 Python 2.7.9 poplib._MAXLINE problem
Control: notfound 782614 4.46.0-1~deb7u1

Hi,

This is Python 2.7.9 problem.  Upstream of getmail took strong position
on this.  He made extremely simple fix as attached patch with 4.48.0
release.

4.46.0-1~deb7u1 is in the oldstable with Python 2.7.3* and not hit by
this bug.

Osamu

--- getmail-4.47.0/getmailcore/_retrieverbases.py	2015-02-26 10:10:44.000000000 +0900
+++ getmail-4.48.0/getmailcore/_retrieverbases.py	2015-06-01 23:49:04.499564781 +0900
@@ -233,6 +233,15 @@
 # Constant for POPSSL
 POP3_SSL_PORT = 995
 
+
+# Python added poplib._MAXLINE somewhere along the way.  As far as I can
+# see, it serves no purpose except to introduce bugs into any software
+# using poplib.  Any computer running Python will have at least some megabytes
+# of userspace memory; arbitrarily causing message retrieval to break if any
+# "line" exceeds 2048 bytes is absolutely stupid.
+poplib._MAXLINE = 1 << 20   # 1MB; decrease this if you're running on a VIC-20
+
+
 #
 # Mix-in classes
 #

Reply via email to