FIX: don't duplicate attachments

This commit is contained in:
Régis Hanol
2019-01-28 18:40:52 +01:00
parent 3d52f690b3
commit 51fdf7a11d
2 changed files with 18 additions and 12 deletions

View File

@ -939,6 +939,7 @@ module Email
attachments << part if part.attachment? && is_whitelisted_attachment?(part)
end
attachments.uniq!
attachments
end
end