From 2125a630d9eda68c7e342c364f6967b8a758caaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 17 Nov 2016 12:44:39 +0100 Subject: [PATCH] FIX: encoding issues with forwarded emails --- lib/email/receiver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb index 7b8556bbb41..faaf55fe467 100644 --- a/lib/email/receiver.rb +++ b/lib/email/receiver.rb @@ -377,7 +377,7 @@ module Email embedded = Mail.new(@embedded_email_raw) email, display_name = parse_from_field(embedded) embedded_user = find_or_create_user(email, display_name) - raw = embedded.decoded + raw = try_to_encode(embedded.decoded, "UTF-8").presence || embedded.to_s title = embedded.subject.presence || subject case destination[:type]