@@ -390,7 +390,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 = strip(re.sub("(^\s*(Fw|FW|fwd)[^:]*:|\s*(Re|RE)[^:]*:\s*)*", "", email.subject)) | |||||
subject = frappe.as_unicode(strip(re.sub("(^\s*(Fw|FW|fwd)[^:]*:|\s*(Re|RE)[^:]*:\s*)*", | |||||
"", email.subject))) | |||||
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, | ||||
@@ -36,7 +36,7 @@ Received: from [192.168.0.100] ([27.106.4.70]) | |||||
Mon, 15 Sep 2014 03:35:04 -0700 (PDT) | Mon, 15 Sep 2014 03:35:04 -0700 (PDT) | ||||
From: Rushabh Mehta <test_sender@example.com> | From: Rushabh Mehta <test_sender@example.com> | ||||
Content-Type: multipart/alternative; boundary="Apple-Mail=_57F71261-5C3A-43F6-918B-4438B96F61AA" | Content-Type: multipart/alternative; boundary="Apple-Mail=_57F71261-5C3A-43F6-918B-4438B96F61AA" | ||||
Subject: test mail | |||||
Subject: test mail 🦄🌈😎 | |||||
Message-Id: <9143999C-8456-4399-9CF1-4A2DA9DD7711@gmail.com> | Message-Id: <9143999C-8456-4399-9CF1-4A2DA9DD7711@gmail.com> | ||||
Date: Mon, 15 Sep 2014 16:04:57 +0530 | Date: Mon, 15 Sep 2014 16:04:57 +0530 | ||||
To: Rushabh Mehta <test_receiver@example.com> | To: Rushabh Mehta <test_receiver@example.com> | ||||
@@ -1160,7 +1160,8 @@ frappe.ui.form.ControlSelect = frappe.ui.form.ControlData.extend({ | |||||
frappe.ui.form.ControlLink = frappe.ui.form.ControlData.extend({ | frappe.ui.form.ControlLink = frappe.ui.form.ControlData.extend({ | ||||
make_input: function() { | make_input: function() { | ||||
var me = this; | var me = this; | ||||
$('<div class="link-field ui-front" style="position: relative;">\ | |||||
// line-height: 1 is for Mozilla 51, shows extra padding otherwise | |||||
$('<div class="link-field ui-front" style="position: relative; line-height: 1;">\ | |||||
<input type="text" class="input-with-feedback form-control">\ | <input type="text" class="input-with-feedback form-control">\ | ||||
<span class="link-btn">\ | <span class="link-btn">\ | ||||
<a class="btn-open no-decoration" title="' + __("Open Link") + '">\ | <a class="btn-open no-decoration" title="' + __("Open Link") + '">\ | ||||
@@ -46,7 +46,7 @@ From: Sukh Dugal <sukh@yyy.com> | |||||
Content-Type: multipart/alternative; boundary="Apple-Mail=_932090B1-CF85-48AE-A8FA-95F2EEB1A521" | Content-Type: multipart/alternative; boundary="Apple-Mail=_932090B1-CF85-48AE-A8FA-95F2EEB1A521" | ||||
Message-Id: <444FBF29-EE23-4698-A38F-DD1081ABB362@yyy.com> | Message-Id: <444FBF29-EE23-4698-A38F-DD1081ABB362@yyy.com> | ||||
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) | Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) | ||||
Subject: Re: 1 minute review | |||||
Subject: Re: 1 minute review 🦄🌈😎 | |||||
Date: Mon, 7 Mar 2016 19:15:12 +0530 | Date: Mon, 7 Mar 2016 19:15:12 +0530 | ||||
References: <7c38972ae7@frappe.xxx.com> | References: <7c38972ae7@frappe.xxx.com> | ||||
To: support@xxx.com | To: support@xxx.com | ||||