summaryrefslogtreecommitdiff
path: root/addons/fetchmail/fetchmail.py
diff options
context:
space:
mode:
authorMustufa Rangwala <mra@mra-laptop>2011-07-06 12:26:36 +0530
committerMustufa Rangwala <mra@mra-laptop>2011-07-06 12:26:36 +0530
commit0d2f870ee53c2299dc9de262a0f0c78d42e19bee (patch)
tree58456f843414fb5fea8a005445ddf8ffaddbe8c2 /addons/fetchmail/fetchmail.py
parentca6a1a7e61a0ff8de0d7f509439db781e9847a8b (diff)
parent4a2f59cca8ee4ffd15394699e2576d979a604ed5 (diff)
[MERGE] Merge from main branch
bzr revid: mra@mra-laptop-20110706065636-zt4s6w7i5gtv3r9m
Diffstat (limited to 'addons/fetchmail/fetchmail.py')
-rw-r--r--addons/fetchmail/fetchmail.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py
index 41f84cfdedd..386b48f1546 100644
--- a/addons/fetchmail/fetchmail.py
+++ b/addons/fetchmail/fetchmail.py
@@ -116,7 +116,7 @@ class email_server(osv.osv):
if context is None:
context = {}
for server in self.browse(cr, uid, ids, context=context):
- logger.notifyChannel('imap', netsvc.LOG_INFO, 'fetchmail start checking for new emails on %s' % (server.name))
+ logger.notifyChannel(server.type, netsvc.LOG_INFO, 'fetchmail start checking for new emails on %s' % (server.name))
context.update({'server_id': server.id, 'server_type': server.type})
try:
if server.type == 'imap':
@@ -199,7 +199,7 @@ class email_server(osv.osv):
pop_server.quit()
- logger.notifyChannel('imap', netsvc.LOG_INFO, 'fetchmail fetch %s email(s) from %s' % (numMsgs, server.name))
+ logger.notifyChannel(server.type, netsvc.LOG_INFO, 'fetchmail fetch %s email(s) from %s' % (numMsgs, server.name))
except Exception, e:
logger.notifyChannel(server.type, netsvc.LOG_WARNING, '%s' % (tools.ustr(e)))