2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

handle emails with localized headers 😠

This commit is contained in:
Régis Hanol 2017-01-09 22:59:30 +01:00
parent 6b4f265a8c
commit 185dcb2ca1
3 changed files with 50 additions and 21 deletions

View file

@ -239,6 +239,8 @@ module Email
end
def parse_from_field(mail)
return unless mail[:from]
if mail[:from].errors.blank?
mail[:from].address_list.addresses.each do |address_field|
address_field.decoded