Merge pull request #3918 from techAPJ/better-email-parsing

FEATURE: better email reply parsing
This commit is contained in:
Régis Hanol
2015-12-11 14:51:24 +01:00
6 changed files with 71 additions and 4 deletions

View File

@ -140,7 +140,7 @@ module Email
body = discourse_email_trimmer body
raise EmptyEmailError if body.strip.blank?
body = EmailReplyParser.parse_reply body
body = DiscourseEmailParser.parse_reply body
raise EmptyEmailError if body.strip.blank?
body.force_encoding(encoding).encode("UTF-8")