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:
parent
6b4f265a8c
commit
185dcb2ca1
3 changed files with 50 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue