2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

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
commit 02279c41cb
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")