Global Bounce Settings
Hi All I was wondering, is there a way to globally set the “bounce score threshold” to 1.0 and the “bounce you are disabled warnings” to 0 for all my mailing lists. I shudder at having to go into all of them individually and set this. There are a lot. Thanks so much for any help received.
Regards SI
Sent from Mail for Windows 10
On 9/23/19 9:43 AM, Peter Fraser wrote:
Hi All I was wondering, is there a way to globally set the “bounce score threshold” to 1.0 and the “bounce you are disabled warnings” to 0 for all my mailing lists. I shudder at having to go into all of them individually and set this. There are a lot. Thanks so much for any help received.
If you have shell access to the Mailman installation, there are multiple ways to script this.
One way is to create a withlist script like
def set_bounce(mlist): if not mlist.Locked(): mlist.Lock() mlist.bounce_score_threshold = 1.0 mlist.bounce_you_are_disabled_warnings = 0 mlist.Save() mlist.Unlock()
save it as set_bounce.py in Mailman's bin/ directory and run
bin/withlist -a -r set_bounce
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Fantastic. Worked perfectly. Thanks so much.
From: Mark Sapiro Sent: Tuesday, September 24, 2019 10:07 AM To: mailman-users@python.org Subject: Re: [Mailman-Users] Global Bounce Settings
On 9/23/19 9:43 AM, Peter Fraser wrote:
Hi All I was wondering, is there a way to globally set the “bounce score threshold” to 1.0 and the “bounce you are disabled warnings” to 0 for all my mailing lists. I shudder at having to go into all of them individually and set this. There are a lot. Thanks so much for any help received.
If you have shell access to the Mailman installation, there are multiple ways to script this.
One way is to create a withlist script like
def set_bounce(mlist): if not mlist.Locked(): mlist.Lock() mlist.bounce_score_threshold = 1.0 mlist.bounce_you_are_disabled_warnings = 0 mlist.Save() mlist.Unlock()
save it as set_bounce.py in Mailman's bin/ directory and run
bin/withlist -a -r set_bounce
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/softwareinfojam%40gmai...
participants (2)
-
Mark Sapiro -
Peter Fraser