Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core
Commits: 5fee3e00 by Mark Sapiro at 2021-04-16T22:26:54+00:00 Set pending probe token life to 10 days. - - - - - 502726d4 by Mark Sapiro at 2021-04-16T22:26:55+00:00 Merge branch 'probe' into 'master' Set pending probe token life to 10 days. Closes #869 See merge request mailman/mailman!829 - - - - - 2 changed files: - src/mailman/app/bounces.py - src/mailman/docs/NEWS.rst Changes: ===================================== src/mailman/app/bounces.py ===================================== @@ -24,6 +24,7 @@ import logging from email.mime.message import MIMEMessage from email.mime.text import MIMEText from email.utils import parseaddr +from lazr.config import as_timedelta from mailman.config import config from mailman.core.i18n import _ from mailman.email.message import OwnerNotification, UserNotification @@ -46,6 +47,8 @@ blog = logging.getLogger('mailman.bounce') DOT = '.' NL = '\n' +# Lifetime for pended probe tokens +PENDABLE_LIFETIME = '10d' @public @@ -214,7 +217,8 @@ def send_probe(member, msg=None, message_id=None): member_id=member.member_id.hex, message_id=message_id, ) - token = getUtility(IPendings).add(pendable) + token = getUtility(IPendings).add( + pendable, lifetime=as_timedelta(PENDABLE_LIFETIME)) mailbox, domain_parts = split_email(mlist.bounces_address) probe_sender = Template(config.mta.verp_probe_format).safe_substitute( bounces=mailbox, ===================================== src/mailman/docs/NEWS.rst ===================================== @@ -33,6 +33,7 @@ Bugs ``run`` or ``_one_itiration`` methods can now be implemented. (Closes #866) * The ``FileNotFound`` exception thrown in CacheManager on attempt to delete an entry for a missing file is now caught. (Closes #867) +* Pending probe bounce tokens now have a lifetime of 10 days. (Closes #869) Command line ------------ View it on GitLab: https://gitlab.com/mailman/mailman/-/compare/517904db64111f2fd5f8c47f66fb7ea02c996ac3...502726d49bc0778c6039a670066215c6517360a9 -- View it on GitLab: https://gitlab.com/mailman/mailman/-/compare/517904db64111f2fd5f8c47f66fb7ea02c996ac3...502726d49bc0778c6039a670066215c6517360a9 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