chore(dolist): helper so we know if mail is sendable by API

This commit is contained in:
Colin Darie 2023-02-02 16:11:52 +01:00
parent 6a3de1b57a
commit 6b011b8b44

View file

@ -30,6 +30,11 @@ class Dolist::API
sleep (limit_reset_at - Time.zone.now).ceil
end
def sendable?(mail)
# Mail having attachments are not yet supported in our account
mail.attachments.none? { !_1.inline? }
end
end
def properly_configured?