diff options
| author | mailman | 1998-02-26 23:39:19 +0000 |
|---|---|---|
| committer | mailman | 1998-02-26 23:39:19 +0000 |
| commit | a72506f8b34dbadbd3532c9c6fce145ac88746aa (patch) | |
| tree | e341212ce2869fa7f287cb2f05a59a75db5e52f8 /scripts/request | |
| parent | f1b2a9807788b77f0015a7e69fa5eb8cf9b4ad67 (diff) | |
| download | mailman-a72506f8b34dbadbd3532c9c6fce145ac88746aa.tar.gz mailman-a72506f8b34dbadbd3532c9c6fce145ac88746aa.tar.zst mailman-a72506f8b34dbadbd3532c9c6fce145ac88746aa.zip | |
Initial revision
Diffstat (limited to 'scripts/request')
| -rwxr-xr-x | scripts/request | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/request b/scripts/request new file mode 100755 index 000000000..19fe69d5c --- /dev/null +++ b/scripts/request @@ -0,0 +1,24 @@ +#! /usr/local/bin/python +# +# This script gets called by the wrapper. +# Stdin is the mail message, and argv[1] is the name of the mailing list +# being posted to. + +import sys +f = open('/tmp/mailcmd.err', 'a+') +sys.stderr = f + +sys.path.append('/home/mailman/mailman/modules') + +import maillist + +# Only let one program run at once per list. + +# TODO: This can fail, and should send back an error message when it does. +list = maillist.MailList(sys.argv[1]) + +try: + list.ParseMailCommands() +finally: + list.Unlock() + |
