diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 3639decf3dc..a57a526c22d 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -289,7 +289,7 @@ class email_server(osv.osv): else: model_pool = self.pool.get(server.object_id.model) if hasattr(model_pool, 'message_new'): - res_id = model_pool.message_new(cr, uid, msg, context) + res_id = model_pool.message_new(cr, uid, msg, context)fetchmail/fetchmail.py else: logger.notifyChannel('imap', netsvc.LOG_WARNING, 'method def message_new is not define in model %s' % (model_pool._name)) return False @@ -339,10 +339,6 @@ class email_server(osv.osv): def fetch_mail(self, cr, uid, ids, context={}): - fp = os.popen('ping www.google.com -c 1 -w 5',"r") - if not fp.read(): - logger.notifyChannel('imap', netsvc.LOG_WARNING, 'lost internet connection !') - for server in self.browse(cr, uid, ids, context): logger.notifyChannel('imap', netsvc.LOG_INFO, 'fetchmail start checking for new emails on %s' % (server.name))