浏览代码

Merge pull request #1184 from rmehta/email-receive-fix

[fix] remove arbit sender matching if append_to exists
version-14
Nabin Hait 10 年前
父节点
当前提交
84dce3445d
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. +0
    -8
      frappe/email/doctype/email_account/email_account.py

+ 0
- 8
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)



正在加载...
取消
保存