from __future__ import unicode_literals

from django.core.mail.backends.smtp import EmailBackend as SMTPBackend

from bandit.backends.base import HijackBackendMixin, LogOnlyBackendMixin


class HijackSMTPBackend(HijackBackendMixin, SMTPBackend):
    """
    This backend intercepts outgoing messages drops them to a single email
    address.
    """
    pass


class LogOnlySMTPBackend(LogOnlyBackendMixin, SMTPBackend):
    """
    This backend intercepts outgoing messages and logs them, allowing
    only messages destined for ADMINS to be sent via SMTP.
    """
    pass

from __future__ import unicode_literals

from django.core.mail.backends.smtp import EmailBackend as SMTPBackend

from bandit.backends.base import HijackBackendMixin, LogOnlyBackendMixin


class HijackSMTPBackend(HijackBackendMixin, SMTPBackend):
    """
    This backend intercepts outgoing messages drops them to a single email
    address.
    """
    pass


class LogOnlySMTPBackend(LogOnlyBackendMixin, SMTPBackend):
    """
    This backend intercepts outgoing messages and logs them, allowing
    only messages destined for ADMINS, BANDIT_EMAIL, SERVER_EMAIL, or
    BANDIT_WHITELIST to be sent via SMTP.
    """
    pass

Update LogOnlySMTPBackend docstring. Not only admin emails are allowed, all approved emails are still sent.
Update LogOnlySMTPBackend docstring.
Not only admin emails are allowed, all approved emails are still sent.

  from __future__ import unicode_literals
  
  from django.core.mail.backends.smtp import EmailBackend as SMTPBackend
  
  from bandit.backends.base import HijackBackendMixin, LogOnlyBackendMixin
  
  
  class HijackSMTPBackend(HijackBackendMixin, SMTPBackend):
      """
      This backend intercepts outgoing messages drops them to a single email
      address.
      """
      pass
  
  
  class LogOnlySMTPBackend(LogOnlyBackendMixin, SMTPBackend):
      """
      This backend intercepts outgoing messages and logs them, allowing
-     only messages destined for ADMINS to be sent via SMTP.
+     only messages destined for ADMINS, BANDIT_EMAIL, SERVER_EMAIL, or
+     BANDIT_WHITELIST to be sent via SMTP.
      """
      pass
  
Update LogOnlySMTPBackend docstring. Not only admin emails are allowed, all approved emails are still sent.
## Code Before:
from __future__ import unicode_literals

from django.core.mail.backends.smtp import EmailBackend as SMTPBackend

from bandit.backends.base import HijackBackendMixin, LogOnlyBackendMixin


class HijackSMTPBackend(HijackBackendMixin, SMTPBackend):
    """
    This backend intercepts outgoing messages drops them to a single email
    address.
    """
    pass


class LogOnlySMTPBackend(LogOnlyBackendMixin, SMTPBackend):
    """
    This backend intercepts outgoing messages and logs them, allowing
    only messages destined for ADMINS to be sent via SMTP.
    """
    pass

## Instruction:
Update LogOnlySMTPBackend docstring. Not only admin emails are allowed, all approved emails are still sent.
## Code After:
from __future__ import unicode_literals

from django.core.mail.backends.smtp import EmailBackend as SMTPBackend

from bandit.backends.base import HijackBackendMixin, LogOnlyBackendMixin


class HijackSMTPBackend(HijackBackendMixin, SMTPBackend):
    """
    This backend intercepts outgoing messages drops them to a single email
    address.
    """
    pass


class LogOnlySMTPBackend(LogOnlyBackendMixin, SMTPBackend):
    """
    This backend intercepts outgoing messages and logs them, allowing
    only messages destined for ADMINS, BANDIT_EMAIL, SERVER_EMAIL, or
    BANDIT_WHITELIST to be sent via SMTP.
    """
    pass
