summaryrefslogtreecommitdiff
path: root/addons/fetchmail/fetchmail.py
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2010-04-22 18:36:15 +0200
committerOlivier Dony <odo@openerp.com>2010-04-22 18:36:15 +0200
commiteaf9a353f855f78c3324dcbdeb64ca2441325eaa (patch)
tree69e5b6a690f85be77b68f9deb1b9552149b9cf41 /addons/fetchmail/fetchmail.py
parent69a7e6e1bd8da5cb20fa73d702b9a4d739c8848c (diff)
[FIX] removed bad and useless call to ping (this is not a correct way of checking for network connection: do the real connection and handle errors please)
bzr revid: odo@openerp.com-20100422163615-7y8512iwaj0odf2z
Diffstat (limited to 'addons/fetchmail/fetchmail.py')
-rw-r--r--addons/fetchmail/fetchmail.py4
1 files changed, 0 insertions, 4 deletions
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))