From 7a1731ce0e20f1958418269a0679b57010b4fc97 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 24 Oct 2014 11:45:17 +0530 Subject: [PATCH] emails from microsoft outlook 14 were not getting parsed as text --- lib/email/receiver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb index 4ca8032cf21..871fe8f9f42 100644 --- a/lib/email/receiver.rb +++ b/lib/email/receiver.rb @@ -115,7 +115,7 @@ module Email text = fix_charset message.text_part # TODO picking text if available may be better # in case of email reply from MS Outlook client, prefer text - if (text && !html) || (text && message.header.to_s =~ /X-MS-Has-Attach/) + if (text && !html) || (text && (message.header.to_s =~ /X-MS-Has-Attach/ || message.header.to_s =~ /Microsoft Outlook/)) return text end elsif message.content_type =~ /text\/html/