diff options
| author | Christophe Simonis <chs@odoo.com> | 2015-07-16 11:21:22 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2015-07-16 11:21:22 +0200 |
| commit | 1510a81366958ecb87376f36d0e7cbca99a5c1c5 (patch) | |
| tree | 7be4c09b97f4d81ad6b13541a0dbc7e7f92a836d /addons/fetchmail | |
| parent | 1240e2ae880476afa0dff911bf0513e62713ed46 (diff) | |
| parent | 9ac62d76bb119892c979fc9fa8f7449cdedc8cb9 (diff) | |
[MERGE] forward port of branch 8.0 up to 9ac62d7
Diffstat (limited to 'addons/fetchmail')
| -rw-r--r-- | addons/fetchmail/fetchmail.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index eb7e0b2e24e..87bf4ec1e68 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 @@ -42,6 +43,9 @@ from openerp.exceptions import UserError _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' |
