diff options
| author | viega | 1998-05-31 04:48:09 +0000 |
|---|---|---|
| committer | viega | 1998-05-31 04:48:09 +0000 |
| commit | cce90248242b07029c8371778e42ff49a9b198c2 (patch) | |
| tree | 417bf02ea170aa0ceefe54866afa1243581a516e /scripts/post | |
| parent | 13e285274a4fa3ff9fe9655fcec38cb9a73385b6 (diff) | |
| download | mailman-cce90248242b07029c8371778e42ff49a9b198c2.tar.gz mailman-cce90248242b07029c8371778e42ff49a9b198c2.tar.zst mailman-cce90248242b07029c8371778e42ff49a9b198c2.zip | |
Modified post to take a second optional argument. If the second argument
is present, post realizes that it was called by the News->Mail gateway,
and tells the mailing list not to Mail->News gateway anything.
Actually, thinking about it, it is probably better to set a field in
each message object saying "Don't send me to news!". I'll probably
adjust that after I get to test the code.
Diffstat (limited to 'scripts/post')
| -rwxr-xr-x | scripts/post | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/post b/scripts/post index 4b73c84a6..570fc208f 100755 --- a/scripts/post +++ b/scripts/post @@ -21,7 +21,9 @@ This script is invoked via the mail wrapper. Stdin is the mail message, and argv[1] is the name of the target mailing -list.""" +list. If there's an argv[2], then this post was gated from news, and +thus should not be re-posted to news if the list gates to a newsgroup. +""" # Todo: check size of To: list < 100 @@ -41,7 +43,10 @@ except IOError: # TODO: This can fail, and should send back an error message when it does. current_list = maillist.MailList(sys.argv[1]) - +if len(sys.argv) > 2: + current_list.tmp_prevent_gate = 1 +else: + current_list.tmp_prevent_gate = 0 try: prog = current_list.filter_prog if prog: |
