Merge pull request #2910 from techAPJ/patch-1
emails from microsoft outlook 14 were not getting parsed as text
This commit is contained in:
commit
842dbed74a
|
@ -115,7 +115,7 @@ module Email
|
||||||
text = fix_charset message.text_part
|
text = fix_charset message.text_part
|
||||||
# TODO picking text if available may be better
|
# TODO picking text if available may be better
|
||||||
# in case of email reply from MS Outlook client, prefer text
|
# 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
|
return text
|
||||||
end
|
end
|
||||||
elsif message.content_type =~ /text\/html/
|
elsif message.content_type =~ /text\/html/
|
||||||
|
|
Loading…
Reference in New Issue