mirror of
https://github.com/postalserver/postal.git
synced 2026-10-20 19:26:07 +00:00
ignore Mail::Field::IncompleteParseError errors when mail gem can't parse header
This commit is contained in:
@@ -329,6 +329,8 @@ module Postal
|
|||||||
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
|
hash[field.name.downcase] << field.decoded
|
||||||
|
rescue Mail::Field::IncompleteParseError
|
||||||
|
# Never mind, move on to the next header
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user