Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core


Commits:
35f51dfd by Mark Sapiro at 2020-08-15T09:07:50-07:00
Use as_boolean() rather than literal 'yes' test.

- - - - -
8e9e6ef7 by Mark Sapiro at 2020-08-15T17:01:25+00:00
Merge branch 'td' into 'master'

Use as_boolean() rather than literal 'yes' test.

Closes #751

See merge request mailman/mailman!685
- - - - -


1 changed file:

- src/mailman/model/bounce.py


Changes:

=====================================
src/mailman/model/bounce.py
=====================================
@@ -20,6 +20,7 @@
 import logging
 import datetime
 
+from lazr.config import as_boolean
 from mailman.app.bounces import send_probe
 from mailman.app.membership import delete_member
 from mailman.app.notifications import (
@@ -186,7 +187,7 @@ class BounceProcessor:
         if member.bounce_score >= mlist.bounce_score_threshold:
             # Save bounce_score because sending probe resets it.
             saved_bounce_score = member.bounce_score
-            if config.mta.verp_probes == 'yes':
+            if as_boolean(config.mta.verp_probes):
                 send_probe(member, message_id=event.message_id)
                 action = 'sending probe'
             else:



View it on GitLab: 
https://gitlab.com/mailman/mailman/-/compare/761c268bb7c7c7b91d3f962e5ca45c9a8387095f...8e9e6ef759c1db7fc8e882832bceeca785e7758a

-- 
View it on GitLab: 
https://gitlab.com/mailman/mailman/-/compare/761c268bb7c7c7b91d3f962e5ca45c9a8387095f...8e9e6ef759c1db7fc8e882832bceeca785e7758a
You're receiving this email because of your account on gitlab.com.


_______________________________________________
Mailman-checkins mailing list -- mailman-checkins@python.org
To unsubscribe send an email to mailman-checkins-le...@python.org
https://mail.python.org/mailman3/lists/mailman-checkins.python.org/
Member address: arch...@jab.org

Reply via email to