summaryrefslogtreecommitdiff
path: root/addons/fetchmail/fetchmail.py
diff options
context:
space:
mode:
authorpsi (Open ERP) <psi@tinyerp.co.in>2011-07-06 12:38:58 +0530
committerpsi (Open ERP) <psi@tinyerp.co.in>2011-07-06 12:38:58 +0530
commit3340800d0d397fdac2aa121976a528d882e75cc4 (patch)
tree7ac75b7f45e6f6133b4a82acef416cfdbcd7ffc2 /addons/fetchmail/fetchmail.py
parent45ca41f9b1c166456cbf7b5f12412fe07ea5811d (diff)
parent0d2f870ee53c2299dc9de262a0f0c78d42e19bee (diff)
[MERGE] base_vat: Merge with main base_vat project branch
bzr revid: psi@tinyerp.co.in-20110706070858-4m2x6lbdvpjip9aw
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)))