From 9fa9d94184ea52264b5be9767ebc2c31abd4adb3 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 5 Mar 2002 04:52:04 +0000 Subject: Patches to support duplicate suppression for explicit recipients, written by Ben Gertzfield, ported to MM2.1 by Marc MERLIN. Specifically, NODUPES: Description of the nodupes option. option_desc, option_info, options: Add nodupes. --- Mailman/MailCommandHandler.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'Mailman/MailCommandHandler.py') diff --git a/Mailman/MailCommandHandler.py b/Mailman/MailCommandHandler.py index 3948b4c54..1e5572ea8 100644 --- a/Mailman/MailCommandHandler.py +++ b/Mailman/MailCommandHandler.py @@ -80,12 +80,17 @@ if you have a non-MIME compliant mail reader. When this option is turned off, you get digests in MIME format, which are much better if you have a mail reader that supports MIME.""") -option_desc = {'hide' : HIDE, - 'nomail' : NOMAIL, - 'ack' : ACK, - 'notmetoo': NOTMETOO, - 'digest' : DIGEST, - 'plain' : PLAIN, +NODUPES = _("""When turned on, you do *not* receive list copies of message +which have you as an explicit recipient (i.e. if you're both a member of the +list and in either the To: or Cc: headers).""") + +option_desc = {'hide' : HIDE, + 'nomail' : NOMAIL, + 'ack' : ACK, + 'notmetoo' : NOTMETOO, + 'digest' : DIGEST, + 'plain' : PLAIN, + 'nodupes' : NODUPES, } # jcrey: and then the real one @@ -97,10 +102,11 @@ option_info = {'hide' : mm_cfg.ConcealSubscription, 'notmetoo': mm_cfg.DontReceiveOwnPosts, 'digest' : 0, 'plain' : mm_cfg.DisableMime, + 'nodupes' : mm_cfg.DontReceiveDuplicates } # ordered list -options = ('hide', 'nomail', 'ack', 'notmetoo', 'digest', 'plain') +options = ('hide', 'nomail', 'ack', 'notmetoo', 'digest', 'plain', 'nodupes') # strip just the outer layer of quotes quotecre = re.compile(r'["\'`](?P.*)["\'`]') -- cgit v1.2.3-70-g09d2