mirror of
https://github.com/postalserver/postal.git
synced 2026-10-21 03:36:05 +00:00
fix syntax for compatibility
This commit is contained in:
@@ -328,12 +328,14 @@ module Postal
|
|||||||
mail = Mail.new(self.raw_headers)
|
mail = Mail.new(self.raw_headers)
|
||||||
mail.header.fields.each_with_object({}) do |field, hash|
|
mail.header.fields.each_with_object({}) do |field, hash|
|
||||||
hash[field.name.downcase] ||= []
|
hash[field.name.downcase] ||= []
|
||||||
|
begin
|
||||||
hash[field.name.downcase] << field.decoded
|
hash[field.name.downcase] << field.decoded
|
||||||
rescue Mail::Field::IncompleteParseError
|
rescue Mail::Field::IncompleteParseError
|
||||||
# Never mind, move on to the next header
|
# Never mind, move on to the next header
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Return the recipient domain for this message
|
# Return the recipient domain for this message
|
||||||
|
|||||||
Reference in New Issue
Block a user