summaryrefslogtreecommitdiff
path: root/bin/newlist
Commit message (Collapse)AuthorAgeFilesLines
* The start of the conversion of the bin and cron scripts to modules invoked bybwarsaw2006-04-271-254/+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. :)
* back port from 2.1.6 / adding new files.tkikuchi2005-08-281-33/+68
|
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* Update docstring.bwarsaw2002-12-021-1/+1
|
* 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(): Catch BadListNameError's that can get raised if the proposedbwarsaw2002-10-061-2/+4
| | | | list name is invalid.
* main(): First, set the global language to the list's preferredbwarsaw2002-02-111-4/+4
| | | | | | | | language for the email message that's sent out. Then do the translation and UserNotification generation, then reset the language context and send the message. Patch by Ben Gertzfield, modified by Barry.
* main(): Ben Gertzfield points out that newlist isn't consistent in itsbwarsaw2001-12-161-9/+34
| | | | | | | | | use of the language for the template and the Subject: header. Make sure both the header and the template is in the list's preferred language. Also, add -l/--language option so that the list's preferred language can be set from the command line.
* process_request(): Utils.get_site_email()'s second argument should nobwarsaw2001-11-201-1/+1
| | | | longer include the leading dash.
* 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.
* Change the semantics for creating a list in a virtual domain differentbwarsaw2001-08-201-44/+40
| | | | | | | | | | | | | | | than the default. Now, the syntax mylist@mydom.ain:www.mydom.ain is no longer supported; to set a different email host_name from the web_page_url host, you must first set up VIRTUAL_HOSTS, in which mydom.ain will be looked up. main(): No longer split the domain argument on `:' Calculate host_name and web_page_url as described above. Also, we're now always responsible for saving the list, so do that, then unlock the list and perform the rest of the task outside the try/finally.
* main(): Instead of using MAILMAN_OWNER, use Utils.get_site_email().bwarsaw2001-08-041-5/+5
| | | | The former config variable is going away.
* main(): Use mm_cfg.MAILMAN_OWNER as the originator of the mail messagebwarsaw2001-05-201-3/+2
| | | | | instead of `mailman-owner@' + mlist.host_name. This closes SF bug #424389, although I'm not 100% sure this is the right fix.
* main(): When -q/--quiet isn't given, restore prompting before sendingbwarsaw2001-05-101-6/+47
| | | | | | | | | out the list-owner notification email. Also, the list name now has optional extended syntax which can be used to specify the list's initial host_name and web_page_url. This lets you create new lists in any of the virtual domains, without having to hack the list configuration afterwards.
* Several changes to sync this with through-the-web and automaticbwarsaw2001-05-091-75/+10
| | | | | | | | | | creation of mailing lists. Specifically, -o/--output switch is removed SENDMAIL_ALIAS_TEMPLATE, QMAIL_ALIAS_TEMPLATE are all removed, as is getusername() and the outputting of alias file suggestions. Also, we don't prompt before notifying the new list's owner.
* Fix usage to remove the mention of the magical 4th argument.twouters2001-03-021-6/+3
|
* Get rid of the HandlerAPI and Crypt stuff, use sha as the default hashbwarsaw2001-02-151-14/+12
| | | | | for list passwords, de-string-module-ification, add hooks for preferred_language, and use the new mimelib/switchboard interface.
* main(): Call maketext() with the list's preferred language.bwarsaw2000-12-261-1/+1
|
* Start of support for i18n; marking of translatable strings.bwarsaw2000-12-071-29/+28
| | | | | Use extended print statement, string methods, and other Python 2.0 features.
* 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.
* Added -o flag to append /etc/aliases suggestions to the given file.bwarsaw2000-11-101-10/+24
| | | | Makes creating new lists only slightly easier.
* Add -h/--help option and standard option parsing.bwarsaw2000-11-081-8/+25
|
* 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-1/+1
| | | | | standard library, get rid of Mailman.pythonlib.getpass compatibility module.
* main(): Reject empty passwords; list admin passwords must bebwarsaw2000-09-191-0/+4
| | | | specified.
* main(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw2000-08-011-2/+2
|
* main(): Use Utils.list_exists() to test for list existance.bwarsaw2000-04-091-2/+3
| | | | | Catch MMListAlreadyExistsError in mlist.Create() -- this is probably redundant.
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-211-1/+1
|
* main(): port to new message delivery code. Some other generalbwarsaw1999-11-291-77/+85
| | | | rewrites and clean ups.
* Catch MMBadEmailError and print a sensible message (PR#59)bwarsaw1999-07-031-3/+8
|
* "import paths" must come before any "from Mailman import module"hmeland1999-03-041-1/+1
| | | | statement -- this wasn't the case when running under Python 1.5.
* Wrap import of getpass in try/except, and get it frombwarsaw1999-02-271-1/+5
| | | | Mailman.pythonlib if we're using Python 1.5
* main(): force the listname to lower case both when it's passed on thebwarsaw1999-02-101-1/+4
| | | | command line, and when it's prompted for.
* Use the following format when printing /etc/aliases suggestion:bwarsaw1998-10-201-3/+3
| | | | | | | addr: "|command" This works for sendmails (which don't seem to care), and is required for Exim and smail MTAs. (suggested by Balazs Szabo).
* Change this to use the standard Python library module getpass to getbwarsaw1998-08-071-2/+2
| | | | | the passwords. Ken apparently never checked in Utils.getTtyPwWithConfirm anyway!
* Using new, non-echoing password reading routine.klm1998-08-051-1/+2
|
* main():bwarsaw1998-07-221-1/+8
| | | | | | # guarantee that all newly created files have the proper permission. # proper group ownership should be assured by the autoconf script # enforcing that all directories have the group sticky bit set
* Typobwarsaw1998-07-221-1/+1
|
* Trivial nitbwarsaw1998-06-231-1/+2
|
* Use the new packagized modulesbwarsaw1998-06-191-49/+21
|
* Add Unlock() calls where appropriate, and add lock = 0 to MailListviega1998-06-131-0/+2
| | | | constructor actuals when the list doesn't need to be locked.
* Updated calls to GetScriptURL to the appropriate new form. One or twoviega1998-06-031-1/+2
| | | | | minor changes here and there to support relative paths (changing absolute paths that didn't use GetScriptURL to begin with).
* Several changes, first the non-controversial ones...bwarsaw1998-05-261-23/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Use the standard Python invocation #! line to get the interpreter from $PATH 2. Do no direct sys.path munging in this file. Import the `paths' module, which is created during the configure process, and which performs all necessary path munging (and exports some useful variables too). 3. Remove RCS crud And some other changes: ADDALIASES_CMD does not contain a hardcoded absolute path. Instead the $prefix is taken from paths.prefix, which is set by the configure script. getusername(): New function which attempts to figure out the user's login name. It uses, in order $USER, $LOGNAME, then the element 0 of pwd.getpwduid(), then the string `<unknown>'. This is used when creating the aliases file cut-and-paste. Slightly changed the format of the aliases file cut-and-paste. Also added a `created' line which includes today's date as DD-MMM-YYYY and the name of the user that created the new list. Some inconsequential code formatting changes. Some rewording of the mailing list creation text, and a string delimiter change to make the code more Emacs friendly.
* Whoops, forgot to add the copyright info to code in the bin subdir...viega1998-05-261-1/+16
|
* Complain and bail if the list was specified with an '@' - don't letmailman1998-05-261-1/+7
| | | | the operator make the mistake of specifying the list's address...
* Get rid of anomolous $Source$ keyword.klm1998-05-041-2/+1
|
* Added missing space to end of initial list password prompt.klm1998-05-041-2/+2
|
* Preparing to package a distribution - add a module docstring andmailman1998-04-091-0/+12
| | | | __version__, $Source$ info.
* Big little whoops - kept producing bad aliases entries, becausemailman1998-03-131-1/+1
| | | | wrapper is in mail/wrapper, not bin/wrapper.
* Mention the email interface in the welcome message (had a questionmailman1998-03-131-5/+12
| | | | | | | | with the first few users, so there's a demand). Track transition of list_names to mm_utils. Now need some setting from mm_cfg for MAILMAN_DIR setting, import it.