chore: Disable email processing for suspended accounts (#5762)

- Disable email processing for suspended accounts
This commit is contained in:
Sojan Jose
2022-10-26 03:40:47 -07:00
committed by GitHub
parent 352558dd11
commit 12cd15b6ad
2 changed files with 22 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ class SupportMailbox < ApplicationMailbox
:decorate_mail
def process
# to turn off spam conversation creation
return unless @account.active?
# prevent loop from chatwoot notification emails
return if notification_email_from_chatwoot?