emails from microsoft outlook 14 were not getting parsed as text

This commit is contained in:
Arpit Jalan 2014-10-24 11:45:17 +05:30
parent aa9b3bb35a
commit 7a1731ce0e
1 changed files with 1 additions and 1 deletions

View File

@ -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/