|
@@ -457,8 +457,8 @@ class EmailAccount(Document): |
|
|
# try and match by subject and sender |
|
|
# try and match by subject and sender |
|
|
# if sent by same sender with same subject, |
|
|
# if sent by same sender with same subject, |
|
|
# append it to old coversation |
|
|
# append it to old coversation |
|
|
subject = frappe.as_unicode(strip(re.sub("(^\s*(Fw|FW|fwd)[^:]*:|\s*(Re|RE)[^:]*:\s*)*", |
|
|
|
|
|
"", email.subject))) |
|
|
|
|
|
|
|
|
subject = frappe.as_unicode(strip(re.sub("(^\s*(fw|fwd|wg)[^:]*:|\s*(re|aw)[^:]*:\s*)*", |
|
|
|
|
|
"", email.subject, 0, flags=re.IGNORECASE))) |
|
|
|
|
|
|
|
|
parent = frappe.db.get_all(self.append_to, filters={ |
|
|
parent = frappe.db.get_all(self.append_to, filters={ |
|
|
self.sender_field: email.from_email, |
|
|
self.sender_field: email.from_email, |
|
|