mirror of
https://github.com/postalserver/postal.git
synced 2026-10-20 19:26:07 +00:00
fix syntax for compatibility
This commit is contained in:
@@ -328,9 +328,11 @@ 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] ||= []
|
||||||
hash[field.name.downcase] << field.decoded
|
begin
|
||||||
rescue Mail::Field::IncompleteParseError
|
hash[field.name.downcase] << field.decoded
|
||||||
# Never mind, move on to the next header
|
rescue Mail::Field::IncompleteParseError
|
||||||
|
# Never mind, move on to the next header
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user