[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/develop] Log incoming email addresses if SAFE_LOGGING is disabled.
commit eabf835bbe3d5df2db759d0fee5ef316bc26bab4
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Fri Jul 25 05:52:53 2014 +0000
Log incoming email addresses if SAFE_LOGGING is disabled.
---
lib/bridgedb/email/autoresponder.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/bridgedb/email/autoresponder.py b/lib/bridgedb/email/autoresponder.py
index 8aa004e..06b37a5 100644
--- a/lib/bridgedb/email/autoresponder.py
+++ b/lib/bridgedb/email/autoresponder.py
@@ -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()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits