From e39c87757b4a5e94b6b2efed272c67ea2b2fba80 Mon Sep 17 00:00:00 2001 From: robert schouten Date: Mon, 20 Feb 2017 14:31:17 +0800 Subject: [PATCH] handle plain text email replies and format --- frappe/email/receive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/receive.py b/frappe/email/receive.py index 1c3568a3de..8f16b4cc9d 100644 --- a/frappe/email/receive.py +++ b/frappe/email/receive.py @@ -326,7 +326,7 @@ class Email: if self.html_content: self.content, self.content_type = self.html_content, 'text/html' else: - self.content, self.content_type = EmailReplyParser.parse_reply(self.text_content), 'text/plain' + self.content, self.content_type = EmailReplyParser.read(self.text_content).text.replace("\n","\n\n"), 'text/plain' def process_part(self, part): """Parse email `part` and set it to `text_content`, `html_content` or `attachments`."""