diff options
| author | mailman | 1998-04-08 05:41:29 +0000 |
|---|---|---|
| committer | mailman | 1998-04-08 05:41:29 +0000 |
| commit | acda07b02047436383908bbf71bd7aae9b9aab43 (patch) | |
| tree | 8272de27cea8b46c870afc214eff3e9c2faf4627 /scripts/post | |
| parent | 3049f7af9fdb65003ff88cbc38ddf34d2fbb9de7 (diff) | |
| download | mailman-acda07b02047436383908bbf71bd7aae9b9aab43.tar.gz mailman-acda07b02047436383908bbf71bd7aae9b9aab43.tar.zst mailman-acda07b02047436383908bbf71bd7aae9b9aab43.zip | |
In addition to moderated messages, recognize error messages associated
with spam and do not notify the sender that their message is being held.
Diffstat (limited to 'scripts/post')
| -rwxr-xr-x | scripts/post | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/post b/scripts/post index 2dfc173e3..5bb0e67a7 100755 --- a/scripts/post +++ b/scripts/post @@ -39,8 +39,12 @@ try: current_list.Post(msg) 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. + or err_msg == mm_err.MODERATED_LIST_MSG + or err_msg == mm_err.IMPLICIT_DEST_MSG + or err_msg == mm_err.SUSPICIOUS_HEADER_MSG + or err_msg == mm_err.FORBIDDEN_SENDER_MSG): + # Do not send hold-for-approval notices for moderated messages + # or potential spam. sys.exit(0) the_sender = msg.GetSender() |
