[FIX]: remove ping from code
bzr revid: mga@tinyerp.com-20100428122234-g4kbexfnwani8et8
This commit is contained in:
parent
3db55f83a1
commit
85cb885535
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue