mirror of
https://github.com/postalserver/postal.git
synced 2026-10-20 11:17:01 +00:00
Parse multipart/related parts recursively (#808)
This is to ensure that tracking pixels are correctly added to all nested parts of the email.
This commit is contained in:
committed by
Adam Cooke
parent
dcb2919cc6
commit
2d9a18f658
@@ -71,7 +71,7 @@ module Postal
|
||||
part.body = parse(part.body.decoded.dup, :text)
|
||||
part.content_transfer_encoding = nil
|
||||
part.charset = 'UTF-8'
|
||||
elsif part.content_type =~ /multipart\/alternative/
|
||||
elsif part.content_type =~ /multipart\/(alternative|related)/
|
||||
unless part.parts.empty?
|
||||
parse_parts(part.parts)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user