chore(dolist): helper so we know if mail is sendable by API
This commit is contained in:
parent
6a3de1b57a
commit
6b011b8b44
1 changed files with 5 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Reference in a new issue