From 6fa692d22efd849685d317564ea73806303f3a0f Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 7 Feb 2023 16:51:44 +0100 Subject: [PATCH] fix(dolist): don't delivery by API emails having bcc --- app/lib/dolist/api.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/lib/dolist/api.rb b/app/lib/dolist/api.rb index 08ba7d57f..79ddb91e3 100644 --- a/app/lib/dolist/api.rb +++ b/app/lib/dolist/api.rb @@ -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