diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index c42ed79d828..feb88b57136 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -326,10 +326,6 @@ class email_server(osv.osv): return self.fetch_mail(cr, uid, ids, context) 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, 'No address associated with hostname !') - 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)) diff --git a/addons/smtpclient/smtpclient.py b/addons/smtpclient/smtpclient.py index 3cb6c4854c0..eff5e240dff 100644 --- a/addons/smtpclient/smtpclient.py +++ b/addons/smtpclient/smtpclient.py @@ -483,10 +483,6 @@ class smtpclient(osv.osv): return result def _send_emails(self, cr, uid, ids, context={}): - fp = os.popen('ping www.google.com -c 1 -w 5',"r") - if not fp.read(): - return False - queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'})