[fix] email threading based on subject

This commit is contained in:
Anand Doshi 2015-05-26 19:12:50 -04:00
parent ce00ecfc54
commit dbf1f3b040

View file

@ -198,7 +198,7 @@ class EmailAccount(Document):
# if sent by same sender with same subject,
# append it to old coversation
subject = re.sub("Re[^:]*:\s*", "", email.subject)
subject = re.sub("(Re|RE)[^:]*:\s*", "", email.subject)
parent = frappe.db.get_all(self.append_to, filters={
sender_field: email.from_email,