From 5b22fc6b61808b4e5c1af0e5d7e86d9ef3db6c00 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 15 Nov 2012 17:10:03 +0530 Subject: [PATCH] dont send mail back to mailer daemon --- support/doctype/support_ticket/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/support/doctype/support_ticket/__init__.py b/support/doctype/support_ticket/__init__.py index f0502f6e2d..6f3c589ae4 100644 --- a/support/doctype/support_ticket/__init__.py +++ b/support/doctype/support_ticket/__init__.py @@ -121,7 +121,8 @@ class SupportMailbox(POP3Mailbox): # send auto reply if cint(self.email_settings.send_autoreply): - self.send_auto_reply(d) + if "MAILER-DAEMON" not in d.raised_by: + self.send_auto_reply(d) webnotes.conn.commit() # extract attachments @@ -165,7 +166,7 @@ We will get back to you as soon as possible """ + cstr(signature)) - from webnotes.utils.email_lib import sendmail + from webnotes.utils.email_lib import sendmail sendmail(\ recipients = [cstr(d.raised_by)], \