From db6042b8a8d3fac75e55d94479157880bfae3fd6 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 6 Jul 2015 10:50:09 +0530 Subject: [PATCH] [fix] remove arbit sender matching if append_to exists --- frappe/email/doctype/email_account/email_account.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/frappe/email/doctype/email_account/email_account.py b/frappe/email/doctype/email_account/email_account.py index dadb892f90..5820da7edf 100644 --- a/frappe/email/doctype/email_account/email_account.py +++ b/frappe/email/doctype/email_account/email_account.py @@ -215,14 +215,6 @@ class EmailAccount(Document): "creation": (">", (get_datetime() - relativedelta(days=10)).strftime(DATE_FORMAT)) }, fields="name") - else: - # try and match by sender only - # as there is no subject field, it implies that threading isn't by subject, but by sender only - - parent = frappe.db.get_all(self.append_to, filters={ - sender_field: email.from_email, - }, fields="name") - if parent: parent = frappe.get_doc(self.append_to, parent[0].name)