diff options
| author | mailman | 1998-03-18 22:24:01 +0000 |
|---|---|---|
| committer | mailman | 1998-03-18 22:24:01 +0000 |
| commit | 456e531f333d154bc0f1c9e28269051dfa397b16 (patch) | |
| tree | aba022738e02931060b101012d2becf68e5e4bea | |
| parent | efa48bd826c8010d7ca33d47b9e310a621734188 (diff) | |
| download | mailman-456e531f333d154bc0f1c9e28269051dfa397b16.tar.gz mailman-456e531f333d154bc0f1c9e28269051dfa397b16.tar.zst mailman-456e531f333d154bc0f1c9e28269051dfa397b16.zip | |
Do not send out "holding for approval" messages when the reason for
the hold is list moderation.
| -rwxr-xr-x | scripts/post | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/post b/scripts/post index c5b8f1109..c1b671984 100755 --- a/scripts/post +++ b/scripts/post @@ -33,9 +33,12 @@ try: try: current_list.Post(msg) - except mm_err.MMNeedApproval, err_msg: - if current_list.dont_respond_to_post_requests: + except mm_err.MMNeedApproval, err_msg: + if (current_list.dont_respond_to_post_requests + or err_msg == mm_err.MODERATED_LIST_MSG): + # Do not send hold-for-approval notices for moderated messages. sys.exit(0) + the_sender = msg.GetSender() subj = msg.getheader('subject') if not subj: |
