FIX: encoding issues with forwarded emails

This commit is contained in:
Régis Hanol 2016-11-17 12:44:39 +01:00
parent ec28789b99
commit 2125a630d9

View File

@ -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]