fix(dolist): don't delivery by API emails having bcc

This commit is contained in:
Colin Darie 2023-02-07 16:51:44 +01:00
parent b1440ac5ee
commit 6fa692d22e
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -32,6 +32,9 @@ class Dolist::API
end
def sendable?(mail)
return false if mail.to.blank? # recipient are mandatory
return false if mail.bcc.present? # no bcc support
# Mail having attachments are not yet supported in our account
mail.attachments.none? { !_1.inline? }
end