summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-05-02 03:06:37 +0000
committerbwarsaw2002-05-02 03:06:37 +0000
commit9c40b0b3bfddfc76a825a5c7262c52ba18271bd5 (patch)
treee21b4add7cdb924a3bd171731e4e75c577d4d0a5
parent18aef27a43209f305178849b43e84fd14bcdd4a3 (diff)
downloadmailman-9c40b0b3bfddfc76a825a5c7262c52ba18271bd5.tar.gz
mailman-9c40b0b3bfddfc76a825a5c7262c52ba18271bd5.tar.zst
mailman-9c40b0b3bfddfc76a825a5c7262c52ba18271bd5.zip
The mapping of short options names to their flags has been moved here
from MailCommandHandler.py via the OPTINFO dictionary. LIKELY_BOUNCE_SENDERS: Removed; this didn't appear to be used anywhere any more.
-rw-r--r--Mailman/Defaults.py.in18
1 files changed, 10 insertions, 8 deletions
diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in
index e3007e643..0fe290c17 100644
--- a/Mailman/Defaults.py.in
+++ b/Mailman/Defaults.py.in
@@ -958,14 +958,6 @@ DEFAULT_BOUNCE_UNRECOGNIZED_GOES_TO_LIST_OWNER = 1
DEFAULT_BOUNCE_NOTIFY_OWNER_ON_DISABLE = 1
DEFAULT_BOUNCE_NOTIFY_OWNER_ON_REMOVAL = 1
-# List of addresses (lhs of the @) that likely come only from MTAs bouncing
-# messages. This is used in the bounce detector and MailCommandHandler.py to
-# stop processing or forwarding such messages.
-#
-# TBD: why orphanage? why postoffice?
-LIKELY_BOUNCE_SENDERS = ('daemon', 'mailer-daemon', 'postmaster',
- 'orphanage', 'postoffice')
-
#####
@@ -1082,6 +1074,16 @@ ReceiveNonmatchingTopics = 64
Moderate = 128
DontReceiveDuplicates = 256
+# A mapping between short option tags and their flag
+OPTINFO = {'hide' : ConcealSubscription,
+ 'nomail' : DisableDelivery,
+ 'ack' : AcknowledgePosts,
+ 'notmetoo': DontReceiveOwnPosts,
+ 'digest' : 0,
+ 'plain' : DisableMime,
+ 'nodupes' : DontReceiveDuplicates
+ }
+
# Authentication contexts.
#
# Mailman defines the following roles: