summaryrefslogtreecommitdiff
path: root/addons/fetchmail
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-07-16 11:15:40 +0200
committerChristophe Simonis <chs@odoo.com>2015-07-16 11:15:40 +0200
commitf304fb7f06e6dfbeb1cd72dfe6ed5092a0fa68c8 (patch)
tree9b1b8555d8694fd198164ce118b561a9ec571d27 /addons/fetchmail
parent505e308cd6cd528f990dc1bc031621525df582d9 (diff)
parente0c1f54fd78117e1a72bf3550f175cf848544515 (diff)
[MERGE] forward port of branch 7.0 up to e0c1f54
Diffstat (limited to 'addons/fetchmail')
-rw-r--r--addons/fetchmail/fetchmail.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py
index 5cf8f85863d..2b652cd8a6b 100644
--- a/addons/fetchmail/fetchmail.py
+++ b/addons/fetchmail/fetchmail.py
@@ -20,6 +20,7 @@
##############################################################################
import logging
+import poplib
import time
from imaplib import IMAP4
from imaplib import IMAP4_SSL
@@ -41,6 +42,9 @@ from openerp.tools.translate import _
_logger = logging.getLogger(__name__)
MAX_POP_MESSAGES = 50
+# Workaround for Python 2.7.8 bug https://bugs.python.org/issue23906
+poplib._MAXLINE = 65536
+
class fetchmail_server(osv.osv):
"""Incoming POP/IMAP mail server account"""
_name = 'fetchmail.server'