Unverified Commit eabf835b authored by Isis Lovecruft's avatar Isis Lovecruft
Browse files

Log incoming email addresses if SAFE_LOGGING is disabled.

parent b4f15e8b
......@@ -389,6 +389,12 @@ class SMTPAutoresponder(smtp.SMTPClient):
clients = self.getMailTo()
if not clients: return
client = clients[0] # There should have been only one anyway
# Log the email address that this message came from if SAFELOGGING is
# not enabled:
if not safelog.safe_logging:
logging.debug("Incoming email was from %s ..." % client)
if not self.runChecks(client): return
recipient = self.getMailFrom()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment