summaryrefslogtreecommitdiff
path: root/bin/rmlist (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The start of the conversion of the bin and cron scripts to modules invoked bybwarsaw2006-04-271-153/+0
| | | | | | | | | | | | | | an uber-shell (called mmshell for now for lack of a better name). The reason I'm doing this is because while I understand and still accept the reason for it, I really hate having to re-run configure (or config.status) every time I make a change to a bin script. mmshell looks at argv[0] to figure out which Mailman.bin module to run. Move newlist and rmlist to the new framework, but also, rewrite newlist to use optparse instead of getopt. Much nicer. Also convert it to use $variables for i18n even though the i18n._() function hasn't yet been updated to handle these (it will soon). rmlist hasn't yet been optparse-ified, but that's soon too. :)
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* main(): Close SF bug # 611185 -- removing any stale list locks whenbwarsaw2003-04-191-28/+43
| | | | | | | | | | | | the list is removed. remove_it(): Local variable rename, and teach this about regular files. Also, whitespace normalization and True/False where appropriate. Note: we do not add the same logic to Mailman/Cgi/rmlist.py since we don't want to remove locks that are going to get cleaned up by the cgi anyway.
* remove_it(): Utils.rmdirhier() -> shutil.rmtree()bwarsaw2002-12-021-1/+2
|
* Jon Parise's patch to improve the usage() output for the command linebwarsaw2002-10-211-2/+6
| | | | | | and cron scripts. When code/status == 0, there's no error (it's likely --help output) so send that to stdout. Otherwise, it's an error and the output goes to stderr.
* main(): Adapted Marc MERLIN's patch which allows you to run rmlist -abwarsaw2002-01-021-22/+35
| | | | | even after a list has been deleted (it simply deletes any residual archives not deleted the first time around).
* Ben Gertzfield's patch to hardcode the path to the python executablebwarsaw2001-09-071-1/+1
| | | | | | | | | | | | | into the script's #! line -- based on --with-python settings, without losing CVS revision history. #! /usr/bin/env python becomes #! @PYTHON@ which gets substituted for in configure.
* Added support for through-the-web list deletion. Also,bwarsaw2001-05-091-8/+17
| | | | | | | | | remove_it(): Use the new Utils.rmdirhier() function instead of calling 'rm -r' through os.system(). main(): Create the MailList object (unlocked) which is passed to the MTA-specific remove() function. Also, use a better idiom for extending the REMOVABLES variable.
* main(): Fix typo in long argument check of --archives. Discovered bybwarsaw2001-03-021-2/+2
| | | | John Aughey.
* Start of support for i18n; marking of translatable strings.bwarsaw2000-12-071-15/+15
| | | | | Use extended print statement, string methods, and other Python 2.0 features.
* 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.
* 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.
* Need to import the string module.bwarsaw2000-09-141-0/+3
|
* Make sure all scripts lowercase the list names, since they are casebwarsaw2000-09-111-1/+4
| | | | | | | 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.
* main(): We don't need to delete locks/<listname>.lock when removingbwarsaw2000-07-191-4/+2
| | | | the list.
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-211-1/+1
|
* Make coding style a little more conformant:bwarsaw1999-02-011-29/+64
| | | | | | | | | | | | - use getopt module to parse options - include a module docstring describing usage - include -h/--help option to print docstring - support --archive (like -a) - put all mainline code in a main() function
* remove_it(): better status messagesbwarsaw1998-11-041-6/+10
|
* Modifications to handle new archiving layout.bwarsaw1998-11-031-1/+5
|
* REMOVABLES: the templates dir no longer contains list specific databwarsaw1998-07-221-1/+0
|
* 1. Use the standard Python invocation #! line to get the interpreterbwarsaw1998-05-261-32/+36
| | | | | | | | | | from $PATH 2. Remove RCS crud Also, re-implemented in Python instead of Bourne shell. This makes it easier to do path munging via import of paths module for better integration with autoconf.
* Whoops, forgot to add the copyright info to code in the bin subdir...viega1998-05-261-1/+16
|
* Preparing to package a distribution - add a "docstring" (for a shellmailman1998-04-091-0/+5
| | | | script, just a comment at the top) and __version__, $Source$ info.
* Removed some now extraneous comments and elaborated an error messagemailman1998-03-181-5/+1
| | | | for debugging sake.
* $0 isn't working.mailman1998-03-051-1/+1
|
* Do not blithely delete the categorical directories if the users failsmailman1998-02-221-8/+29
| | | | | | | | | | | | | | to give a list argument!!! Complain and bailout if no listname is found. (Otherwise, when invoked without arguments, the script was deleting the lists, templates, and archives directories *completely*.) Additionally, do not delete the archives for a list unless the '-a' option is passed. I figure its more often worth keeping the archives around, even if the list is retired. Additionally, indicate whether or not the subject directory is actually there before deleting - some feedback, so users see whether what they expect is happening...
* Initial revisionmailman1998-02-221-0/+18