------------------------------------------------------------
revno: 1345
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.2
timestamp: Thu 2014-05-29 07:15:05 -0700
message:
  If checking DNS for dmarc_moderation_action and DNS lookup is not
  available, log it.  (LP: #1324541)
modified:
  Mailman/Utils.py
  NEWS


--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2

Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/Utils.py'
--- Mailman/Utils.py	2014-05-03 03:25:48 +0000
+++ Mailman/Utils.py	2014-05-29 14:15:05 +0000
@@ -1126,7 +1126,11 @@
 # or possibly quarantine.
 def IsDMARCProhibited(mlist, email):
     if not dns_resolver:
-         return False
+        # This is a problem; log it.
+        syslog('error',
+            'DNS lookup for dmarc_moderation_action for list %s not available',
+            mlist)
+        return False
 
     email = email.lower()
     at_sign = email.find('@')

=== modified file 'NEWS'
--- NEWS	2014-05-09 19:21:00 +0000
+++ NEWS	2014-05-29 14:15:05 +0000
@@ -50,6 +50,9 @@
       subject, date or author index, previous and next are still by thread.
 
 2.1.19 (xx-xxx-xxxx)
+
+    - If checking DNS for dmarc_moderation_action and DNS lookup is not
+      available, log it.  (LP: #1324541)
  
   Bug fixes and other patches
 

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to