Re: [Mailman-Users] Global Bounce Settings

2019-09-24 Thread Peter Fraser
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 The highway is for gamblers,
San Francisco Bay Area, Californiabetter 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%40gmail.com

--
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/archive%40jab.org


Re: [Mailman-Users] Global Bounce Settings

2019-09-24 Thread Mark Sapiro
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 The highway is for gamblers,
San Francisco Bay Area, Californiabetter 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/archive%40jab.org


[Mailman-Users] Global Bounce Settings

2019-09-24 Thread Peter Fraser
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

--
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/archive%40jab.org