summaryrefslogtreecommitdiff
path: root/src/mail-wrapper.c
Commit message (Collapse)AuthorAgeFilesLines
* The start of a setuptools conversion. All the Makefile.in and autoconfBarry Warsaw2007-07-131-92/+0
| | | | artifacts are removed, as is the C files which we will no longer need.
* Update copyright years.bwarsaw2007-01-191-2/+3
|
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* Patch set for SF bug #596565. Use symbolic user/group names insteadbwarsaw2002-08-231-40/+38
| | | | | | | | | | | | | of numeric ids. Initial idea and patch by Todd Vierling, fleshed out by Barry. Specific changes here: LEGAL_PARENT_GID -> LEGAL_PARENT_GROUP Also use parentgroup instead of parentid. Whitespace normalization.
* VALID_COMMANDS: Added `confirm'bwarsaw2002-03-141-0/+1
|
* VALID_COMMANDS: Add `subscribe' and `unsubscribe'.bwarsaw2002-02-231-0/+2
|
* Bump the copyright years.bwarsaw2002-02-141-1/+1
|
* VALID_COMMANDS: To make life easier, we'll include `admin' as a validbwarsaw2002-02-141-0/+1
| | | | | mail program. The installation procedure will copy the bounces script to the admin script. This is for backwards compatibility.
* In order to make the list alias -> script mapping more consistent,bwarsaw2001-11-301-4/+4
| | | | | | | | | | | | | | | | | | | we've renamed mailcmd to request and mailowner to owner (through some SF-assisted CVS repo magic). We've also moved scripts/auto to contrib/auto since it's an obsolete way of doing the auto-aliasing in Postfix. We need to update mail-wrapper.c for the new list of acceptable script names. Note that there are still two abberations: - messages posted to just `listname' go to the post script - messages posted to listname-admin go to the bounces script The latter, listname-admin may eventually go away. Note that this requires you to regenerate your aliases!
* VALID_COMMANDS: Add bouncesbwarsaw2001-11-201-0/+1
|
* VALID_COMMANDS: Deprecate the `auto' script since there is now abwarsaw2001-05-111-2/+3
| | | | | better way to integrate Mailman and Postfix. Add the `join' and `leave' mail programs.
* VALID_COMMANDS: `auto' is an acceptable command -- this is a scriptbwarsaw2000-12-201-0/+1
| | | | that can be used with the Postfix MTA.
* main(): Don't include newline in Usage: error message; this is addedbwarsaw2000-08-021-1/+1
| | | | by fatal() automatically.
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-211-1/+1
|
* Get the gid_t type from configure.bwarsaw1999-12-121-1/+1
|
* check_parent(): This wasn't being used anymore, so it has beenbwarsaw1999-02-271-28/+5
| | | | | | removed. We don't limit MTAs to sendmail anyway. main(): Use the proper exitcode when calling fatal().
* main(): Removed the (I think) useless calls to setuid().bwarsaw1999-02-191-4/+0
|
* check_caller(): Removed test for UID. We now only check for GIDbwarsaw1998-06-011-5/+7
| | | | matches. Fix the prototype, remove macros from C files.
* Several important changes.bwarsaw1998-05-261-116/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. For mail-wrapper.c and cgi-wrapper.c, most common routines have been moved to common.c. While there were some differences in the way these two wrappers worked (most notably in the error handling and reporting when UID's and GID's didn't match), they were easily merged. Fatal errors now always syslog and exit(1). 2. The exec*() call for running the new process has been changed and made consistent. For improved security, the absolute path to the Python interpreter (as discovered by configure) is compiled into these programs, and the environment variable PYTHONPATH is set to include only the absolute path the the installed Mailman package ($prefix/Mailman). Scripts are invoked by exec'ing the Python interpreter with the first argument being the absolute path to the script to run, along with any additional arguments on argc/argv. See the function run_script() in common.c for details. 3. alias-wrapper.c has not yet been fully merged. I gathered from Ken that it doesn't work completely well anyway. 4. check_caller() in common.c still checks the gid, but as we discussed before, this may be redundant. I wanted one check-in with a history of this feature first though. 5. Added an Emacs turd at the end of all files so that the C code will be edited using Python's standard C style. Reformatted existing code. 6. Removed pseudo-log history from comments at top of files.
* Fixed a typo in the zipcode.viega1998-05-261-1/+1
|
* Added copyright notices to all source files where I am legally entitled to ↵viega1998-05-251-3/+21
| | | | | | | do so. Added a copy of the GNU GPL. Added information about mailman-users in README, and reworded some text in there (made the credits less verbose... perhaps they should move to a credits file?)
* Some inconsequential formatting changes.bwarsaw1998-05-011-87/+102
| | | | | | | | | - Use "Python" C editing style when used with X/Emacs - Make X/Emacs friendly by putting function opening braces in column zero and putting function name on separate line from return type - Also added a C local variables section
* Declare main as an int routine so gcc doesn't complain, even though itklm1998-04-281-1/+1
| | | | doesn't return an int.
* I seem to have the right gid now - mail seems to be running asmailman1998-03-301-1/+1
| | | | daemon/other on my (sol 2.6) system.
* Do not depend on write access to an arbitrary file name in /tmp forklm1998-03-081-5/+6
| | | | logging - just print to stdout for now. (Is this a security breach??)
* Not using /tmp/fart file, using regular print's instead - otherwisemailman1998-03-081-4/+4
| | | | | the program can be trivially made to fail by creating /tmp/fart such that daemon cannot overwrite it.
* We use smtp's uid and gid - which happens to be that of root. Am imailman1998-02-261-2/+2
| | | | doing the wrong thing? It works, but i'm not clear about this.
* Initial revisionmailman1998-02-261-0/+135