summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-07-16 11:18:52 +0200
committerChristophe Simonis <chs@odoo.com>2015-07-16 11:18:52 +0200
commit9ac62d76bb119892c979fc9fa8f7449cdedc8cb9 (patch)
tree327a92ba0572d78a92919fcd2083f40e2c4be538 /addons
parente7085a8bd794446dfda3c8b422601495dc6a8210 (diff)
parentf304fb7f06e6dfbeb1cd72dfe6ed5092a0fa68c8 (diff)
[MERGE] forward port of branch saas-3 up to f304fb7
Diffstat (limited to 'addons')
-rw-r--r--addons/fetchmail/fetchmail.py4
-rw-r--r--addons/mail/static/src/js/mail.js2
2 files changed, 5 insertions, 1 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py
index 4caff929e07..ba20cda873a 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'
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js
index 8b62417e343..447dee08284 100644
--- a/addons/mail/static/src/js/mail.js
+++ b/addons/mail/static/src/js/mail.js
@@ -542,7 +542,7 @@ openerp.mail = function (session) {
};
self.do_action(action, {
- 'on_close': function(){ self.parent_thread.message_fetch() }
+ 'on_close': function(){ self.is_log && self.parent_thread.message_fetch() }
});
self.on_cancel();
});