Title: Site Administrator Documentation Links: links.h doco-links.h
Mailman/mm_cfg.py
configuration file, and can run the
various and sundry command line scripts.
bin
directory.
For more details, run the script with the --help
option,
which will print out the usage synopsis. You must run these
scripts from the bin directory in the Mailman installation location,
usually /home/mailman
.
config.pck
and config.pck.last
database
files.
Where this might be useful is if you wanted to change the
web_page_url
attribute on every list. You could
create a file containing only the line
and then feed this file back toweb_page_url = 'http://www.mynewsite.com/mailman-relocated/'
config_list
for every
list on your system. config_list
only sets the
list variables that it finds in the input file.
.db
database file. These files usually contain Python marshaled
dictionaries, and can be found in the qfiles
directory, the lists/listname
directory,
etc. This script can also be used to print out the contents of a
pickled message file, which are stored in .pck
files.
--archives
option
is given.
add_members
. In a sense, this script combines the
functionality of add_members
and
remove_members
. Any addresses in the file that are
not present in the list roster are added, and any addresses in the
roster that are not present in the file are removed.
Command line options let you send various notification emails, preview the changes, etc.
Here you see that you're left at the Python prompt after the list has been loaded and instantiated. Note that without the% cd /home/mailman % python -i bin/withlist mylist Loading list: mylist (unlocked) >>>
--lock
option, the list is not locked. List must be
locked if you plan to make modifications to any attributes (and
they must be explicitly saved, as withlist
does not
automatically save changes to list objects).
At the prompt, the global object m is the instantiated list object. It's a Python instance so you can do all the normal things to it, view or change attributes, or make method calls on it.
Have a look also at the --run
option, which lets
you put your programmatic changes into a Python module (file) and
run that module over any mailing list you want. This makes
withlist
essentially a framework for easily adding
your own list-specific command line scripts.
The% cd /home/mailman % python -S cron/senddigests
-S
option is an optimization and (minor) security
recommendation; it inhibits Python's implicit import site
on initialization. Not all of these scripts support the
--help
option. Here is a brief description of what the
cron scripts do:
gzip
'd flat archive files.