From a86d7887f09e762a00ba47871f459b9e5f7f252d Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 14 Jun 2012 14:59:04 +0530 Subject: [PATCH] fixes in support ticket autoreply --- erpnext/support/doctype/support_ticket/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/support/doctype/support_ticket/__init__.py b/erpnext/support/doctype/support_ticket/__init__.py index 7335dad90e..de596f95f9 100644 --- a/erpnext/support/doctype/support_ticket/__init__.py +++ b/erpnext/support/doctype/support_ticket/__init__.py @@ -15,7 +15,7 @@ # along with this program. If not, see . import webnotes -from webnotes.utils import cstr +from webnotes.utils import cstr, cint from webnotes.utils.email_lib.receive import POP3Mailbox @@ -113,7 +113,8 @@ class SupportMailbox(POP3Mailbox): update_feed(d, 'on_update') # send auto reply - self.send_auto_reply(d) + if cint(self.email_settings.send_autoreply): + self.send_auto_reply(d) webnotes.conn.commit()