[MERGE] forward port of branch saas-3 up to f304fb7

This commit is contained in:
Christophe Simonis 2015-07-16 11:18:52 +02:00
commit 9ac62d76bb
2 changed files with 5 additions and 1 deletions

View File

@ -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'

View File

@ -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();
});