8255.3.2
by Barry Warsaw
Add a bin/withlist script to fix existing mailing lists. |
1 |
# Copyright 2009 Canonical Ltd. All rights reserved.
|
2 |
||
3 |
"""Disable bounce processing in all existing mailing lists.
|
|
4 |
||
5 |
This fixes bug 363217 for existing mailing lists. New lists will
|
|
6 |
automatically have bounce processing disabled via the new default option
|
|
7 |
||
8 |
DEFAULT_BOUNCE_PROCESSING = No
|
|
9 |
||
10 |
Run like so:
|
|
11 |
||
12 |
PYTHONPATH=utilities lib/mailman/bin/withlist -l -a -r mlist_no_bounce.fix
|
|
13 |
||
14 |
You can ignore the final warning you will get that looks something like this:
|
|
15 |
||
16 |
Unlocking (but not saving) lists: whatever
|
|
17 |
"""
|
|
18 |
||
19 |
__metaclass__ = type |
|
20 |
__all__ = [ |
|
21 |
'fix', |
|
22 |
]
|
|
23 |
||
24 |
||
25 |
def fix(mlist): |
|
26 |
mlist.bounce_processing = False |
|
27 |
mlist.Save() |