summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
...
* checkmboxfile(): Ensures that the various archive .mbox files have atbwarsaw2000-12-061-1/+21
| | | | least 0660 permissions.
* main(): Fixed argument parsing bugs. Also, removed the argv[5] hackbwarsaw2000-11-151-24/+34
| | | | | | | for immediate notification and replaced that with a -q/--quiet flag to suppress admin notification (by default notification occurs). Closes SF bug #122333 and patch #102370.
* Allow additional arguments on the command line, which are passed tobwarsaw2000-11-111-24/+50
| | | | | | | | the callable after the MailList object. See module docstring for details. By Dan Mick, modified by Barry for slightly better calling syntax. Closes SF patch #102211
* Added -o flag to append /etc/aliases suggestions to the given file.bwarsaw2000-11-101-10/+24
| | | | Makes creating new lists only slightly easier.
* If we get an import error on "import paths", print a slightly morebwarsaw2000-11-081-1/+9
| | | | helpful error message.
* Add -h/--help option and standard option parsing.bwarsaw2000-11-082-15/+53
|
* Many people have problems upgrading an active system because they findbwarsaw2000-11-011-37/+68
| | | | | | | | | | | that "make update" hangs. This happens because there are existing locks for some of the lists that are being updated. Instead of an unhelpful hang, we now explicitly lock the lists and report errors if the locks timeout. If any of the locks timeout, we also do not update the last_mailman_version file so that subsequent "make update"'s will work.
* main(): If the list given on the command line doesn't exist, print thebwarsaw2000-10-231-0/+4
| | | | usage text and exit. Closes SF bug #117098.
* SF Patch #101846 by Sean Reifschneider (modified by bwarsaw) to addbwarsaw2000-10-201-1/+24
| | | | MTA_ALIASES_STYLE for the newlist script's output.
* Since we now require Python 1.5.2 and that version has getpass in it'sbwarsaw2000-10-021-26/+28
| | | | | | | | | standard library, get rid of Mailman.pythonlib.getpass compatibility module. Plus, general cleanup, and use SetSiteAdminPassword(), CheckSiteAdminPassword() from Utils instead of on a bogus MailList object.
* Since we now require Python 1.5.2 and that version has getpass in it'sbwarsaw2000-10-021-1/+1
| | | | | standard library, get rid of Mailman.pythonlib.getpass compatibility module.
* checkarchivedbs(): Don't bomb out if there are some nondirectories inbwarsaw2000-09-261-1/+1
| | | | the private archive dir.
* Several changes in support of David Champion's SF patch #101331.bwarsaw2000-09-221-2/+2
| | | | | | | Specifically, calcversions(): Update the comment since the logs dir is now relative to VAR_PREFIX.
* Several changes in support of David Champion's SF patch #101331.bwarsaw2000-09-221-1/+3
| | | | | | Specifically, main(): the REMOVABLES are relative to VAR_PREFIX now.
* Several changes in support of David Champion's SF patch #101331.bwarsaw2000-09-221-15/+27
| | | | | | | | | | | | Specifically, MAILMAN_UID and MAILMAN_GID are now available in mm_cfg, so use these as the gid to check group-ownership against, and as the user to re-run the script as if there are errors. checkall(): Now knows about all of PREFIX, EXEC_PREFIX, and VAR_PREFIX and checks the permissions of them all. It's smart about knowing when any of these directories are the same.
* main(): Reject empty passwords; list admin passwords must bebwarsaw2000-09-191-0/+4
| | | | specified.
* Added -a/--all flag to remove all members in one fell swoop. Closesbwarsaw2000-09-151-6/+14
| | | | SF bug #114148, Jitterbug PR#181.
* Need to import the string module.bwarsaw2000-09-141-0/+3
|
* main(): When generating passwords, use the standardbwarsaw2000-09-121-1/+1
| | | | Utils.MakeRandomPassword() instead of handcrafting it here.
* Make sure all scripts lowercase the list names, since they are casebwarsaw2000-09-1114-18/+38
| | | | | | | insensitive. list_lists prints them out using their real name -- not their internal name -- and they should differ only by case. Closes SF bug #113742 and patch #101434.
* dolist(): small patch to fix changing the first moderator inbwarsaw2000-08-251-2/+2
| | | | mlist.owner.
* main(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw2000-08-011-2/+2
|
* SendExplanation(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw2000-08-011-1/+1
|
* do_output(): Hrvoje Niksic rightly points out that we need tobwarsaw2000-07-271-1/+7
| | | | | special-case `subscribe_policy' when ALLOW_OPEN_SUBSCRIBE is false. Yuk.
* do_output(): Needed to add `autoreply' category to get thebwarsaw2000-07-241-1/+1
| | | | | Autoresponse config variables to dump. Also, massage FileUpload type vars the same way that Text vars are processed.
* do_output(): Added `autoreply' to list of categories.bwarsaw2000-07-241-2/+2
|
* Status messages are printed to stderr using the new Utils.write()bwarsaw2000-07-241-9/+13
| | | | method. Fixes SF Bug #108169.
* main(): We don't need to delete locks/<listname>.lock when removingbwarsaw2000-07-191-4/+2
| | | | the list.
* SendExplanation(): Use the new DeliverToUser() API to fix the sendingbwarsaw2000-07-191-2/+5
| | | | of "big changes" messages. Fixes SF Bug # 109274.
* do_output(): Skip volatile attributes (i.e. those whose name beginsbwarsaw2000-06-231-0/+3
| | | | with an underscore).
* Better option parsingbwarsaw2000-06-191-60/+92
| | | | | | Added -w/--owner which scans the owner addresses too Multiple regexps are legal now
* put bulk of logic in main() function and re-arrange things so thebwarsaw2000-06-151-17/+19
| | | | | initial fresh installation still writes the data/last_mailman_version file.
* checkdata(): New function which checks the permissions onbwarsaw2000-06-141-18/+44
| | | | | lists/<listname>/config.db, config.db.last, next-digest, and next-digest-topics.
* A few minor message clarifications.bwarsaw2000-05-081-2/+2
|
* Added dumpdb to SCRIPTS.bwarsaw2000-05-041-1/+1
|
* Dumb but useful script (at least for me!) for pretty printing thebwarsaw2000-05-041-0/+47
| | | | contents of any of Mailman's .db files (e.g. a marshaled dictionary).
* type in docstring (found by Michael Yount)bwarsaw2000-04-211-8/+20
|
* Expanding and changing the command line interface.bwarsaw2000-04-211-50/+140
| | | | | | | | | | | | | | Added -l/--listname options to specify the lists to affect (multiple -l options are okay, and if no -l is given, all lists are changed). Added -r/--remove to optionally remove the old address after cloning Added -a/--admin to scan the list admins (mlist.owner) for the address to change/clone. Added -q/--quiet for verbosity Added -n/--nomodify for dryrun functionality.
* Jim Tittsler points out that the old watermark file can containbwarsaw2000-04-141-0/+3
| | | | | entries for lists that no longer exist. Skip it if the key isn't in Utils.list_names().
* main(): Use Utils.list_exists() to test for list existance.bwarsaw2000-04-091-2/+3
| | | | | Catch MMListAlreadyExistsError in mlist.Create() -- this is probably redundant.
* Missing 'import string' when selecting lists by virtual host.hmeland2000-04-081-0/+1
|
* Prepare for running "make update" automatically. update checks thebwarsaw2000-04-071-23/+50
| | | | | | last installed version against the current installed version and only runs the update stuff if a newer version is being installed. This script could still use a boatload of improvements.
* Added an update to move gate_watermark entries into the list-specificbwarsaw2000-04-071-19/+84
| | | | | | | | | | | | | | | | | usenet_watermark attribute. We get rid of the gate_watermark file once we've updated. Consistency in imports. Try to determine whether the templates/options.html warning needs to be printed or not. It's only printed if we can't determine the last Mailman version and we are not running a fresh install (i.e. there are entries in the logs subdir). Write the current Mailman version (HEX_VERSION) as a hex representation string into the file data/last_mailman_version. This is so the /next/ update can determine what version we're updating from. Lays the groundwork for future updates.
* checkwalk(): make sure all subdirectories have at least permissionsbwarsaw2000-04-051-9/+18
| | | | | | | | | 02775 -- i.e. make sure the dirs are group writable. There's a hack to ignore the funky permissions on the private archive dir and the listname/database subdir inside the private archive dir. checkall(): Also make sure $prefix is 02775; this is a change from the requirement that it be 02755.
* Some meager consistency in handling errors when trying to open thebwarsaw2000-04-048-56/+67
| | | | | | | | | | | | | | | | | | mailing list. In all cases, catch the base exception class MMListError, and output a semi-standard error message which also contains the str() of the actual exception details (is this too much?). Also: config_list: slightly different usage() printing find_member.scanlists(): print a message if a MMListError occurs when opening the mailing list object remove_members: Wrap actual DeleteMember() calls in a try/finally to be sure the list is saved and unlocked should an exception occur. Hmm, should it be all or nothing?
* main(): Slightly better reporting formatbwarsaw2000-04-041-1/+2
|
* list all listsbwarsaw2000-04-041-0/+106
|
* Add list_lists scriptbwarsaw2000-04-041-1/+1
|
* add a #! line and fix the module docstringbwarsaw2000-04-041-3/+3
|
* atexit(): A function for sys.exitfunc which will attempt to guaranteebwarsaw2000-03-281-2/+23
| | | | that the MailList object is unlocked when the script exits.