mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: fix email replies for ms outlook
This commit is contained in:
@ -114,7 +114,8 @@ module Email
|
||||
html = fix_charset message.html_part
|
||||
text = fix_charset message.text_part
|
||||
# TODO picking text if available may be better
|
||||
if text && !html
|
||||
# in case of email reply from MS Outlook client, prefer text
|
||||
if (text && !html) || (text && message.header.to_s =~ /X-MS-Has-Attach/)
|
||||
return text
|
||||
end
|
||||
elsif message.content_type =~ /text\/html/
|
||||
|
Reference in New Issue
Block a user