[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Log when canonicalFromSMTP doesn't match canonicalFromEmail.
commit 43302d0946a13678b4c61300f3646e9f24f03d38
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Wed Mar 25 21:54:45 2015 +0000
Log when canonicalFromSMTP doesn't match canonicalFromEmail.
* ADDS more logging, in order to debug #12627.
https://bugs.torproject.org/12627
---
lib/bridgedb/email/autoresponder.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/bridgedb/email/autoresponder.py b/lib/bridgedb/email/autoresponder.py
index 4fba40d..0eeb14a 100644
--- a/lib/bridgedb/email/autoresponder.py
+++ b/lib/bridgedb/email/autoresponder.py
@@ -656,12 +656,12 @@ class SMTPAutoresponder(smtp.SMTPClient):
# The canonical domains from the SMTP ``MAIL FROM:`` and the email
# ``From:`` header should match:
- #if self.incoming.canonicalFromSMTP != self.incoming.canonicalFromEmail:
- # logging.error("SMTP/Email canonical domain mismatch!")
- # logging.debug("Canonical domain mismatch: %s != %s"
- # % (self.incoming.canonicalFromSMTP,
- # self.incoming.canonicalFromEmail))
- # return False
+ if self.incoming.canonicalFromSMTP != self.incoming.canonicalFromEmail:
+ logging.error("SMTP/Email canonical domain mismatch!")
+ logging.debug("Canonical domain mismatch: %s != %s"
+ % (self.incoming.canonicalFromSMTP,
+ self.incoming.canonicalFromEmail))
+ #return False
self.incoming.domainRules = self.incoming.context.domainRules.get(
self.incoming.canonicalFromEmail, list())
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits