Thanks for your suggestions. I have been able to use withlist to make
this change to one list. However, when I try to run it on all lists, I
get the following error message.
./withlist -l -a -r autodiscard
Importing autodiscard...
Traceback (most recent call last):
File "./withlist", line 275, in ?
main()
File "./withlist", line 247, in main
mod = __import__(module)
File "./autodiscard.py", line 4
m.Save()
^
SyntaxError: invalid syntax
Following is my autodiscard.py file:
###autodiscard.py
def autodiscard(m):
m.forward_auto_discards = False
m.Save()
m.Unlock()
Can you point out an error in my syntax.
Thanks,
Christopher Adams
Mark Sapiro wrote:
Christopher Adams wrote:
I would like to change all mly 500+ lists so that the
forward_auto_discards is set to 'No'. I assume that the best way to do
this is utilizing the 'withlist' utility. I have only used this utility
to change the URL for my lists.
Has anyone done this and could you give me some tips?
See
http://mail.python.org/pipermail/mailman-users/2004-December/041243.html
Just change
mlist.archive = 0
to
mlist.forward_auto_discards = 0
and rename the script appropriately if you want.
There's not much that can go wrong, but it's always a good idea to back
up your lists/ directory before doing stuff like this.
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/