summaryrefslogtreecommitdiff
path: root/bin/genaliases (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Convert genaliases to mmshell, optparse, and configuration.configbwarsaw2006-09-251-116/+0
| | | | | | | | | | | | | | | | bin/withlist: If there's no '@' in the listname, append the DEFAULT_EMAIL_HOST so we always get a fully qualified list name. bin/mmsitepass: plumb through -C/--config switch and be sure to call config.load(). Convert Mailman/MTA/Postfix.py to configuration.config, and update MTA/Manual. In mailman/Cgi/create, we can't convert straight from a string to a bool, because bool('0') is True. We need to go through int first. MailList.InitTempVars(): The logic here looked weird because we could get 'name' = None and that would break. Assume name is never None.
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* Typobwarsaw2003-03-311-1/+1
|
* main(): Add a -q/--quiet flag to suppress some of the more verbose output.bwarsaw2003-03-221-19/+33
| | | | Use True/False where appropriate.
* 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.
* Update copyright years.bwarsaw2002-03-161-1/+1
|
* main(): Call MTA.create(None, ...) when no lists yet exist (as willbwarsaw2001-12-061-3/+6
| | | | | happen if you follow the README.POSTFIX instructions in a virgin installation).
* Adjustments for the new Postfix module API, which should bebwarsaw2001-11-261-34/+10
| | | | | | | | | | | | translatable to other MTAs that need their aliases twiddled. Don't try to import bsddb3; actually don't import bsddb here either. That's handled in Postfix.py. _zapfile(): Gone. main(): Import the Mailman.MTA module named in mm_cfg.MTA, for generality.
* zapfile(): Zero out a file without messing with the file permissions.bwarsaw2001-11-241-15/+21
| | | | | | main(): Collate lists first by host_name, zap the aliases file, and then each of the virtual files for each domain. Then we can just use Postfix.create() to write the appropriate entries to all the files.
* Better support for Berkeley DB link problems (I hope). The problem isbwarsaw2001-11-211-6/+21
| | | | | | | | | | | if Python and Postfix have incompatible versions of BerkeleyDB, genaliases either will fail or will break Postfix. :( Because Robin Dunn's PyBSDDB3 should be compatible with the widest range of existing BDB libs, we try to import and use it first. Failing that, fallback to the standard bsddb module. In either case, we really don't need the dbhash module, which knows nothing about bsddb3.
* 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.
* Ensure that the data/aliases* files are written at least rw-rw-xxxbwarsaw2001-09-041-0/+5
|
* main(): When opening the DBFILE for locking, use the `w' flag so thatbwarsaw2001-08-171-1/+1
| | | | | | | we don't bomb out if the file doesn't exist yet. This lets us recommend bin/genaliases as the way to initialize things instead of `touch data/aliases.db' which seems to not work for some people.
* Module docstring consistency.bwarsaw2001-07-261-1/+1
|
* main(): Before we write to the aliases.db file, we must drop anbwarsaw2001-05-111-1/+9
| | | | | | exclusive advisory lock on it, so Postfix doesn't try to read the file while we're updating it. For a discussion of why we have to do this so cruftily, see Mailman/MTA/Postfix.py
* intermediatebwarsaw2001-05-101-0/+2
|
* A script to regenerate both the data/aliases.db hash file and thebwarsaw2001-05-101-0/+83
plain text data/aliases file for the Postfix MTA, using the known list of mailing lists. This overwrites the existing file contents and should be used if they get out of sync.