[Mailman-Users] Search by Message-ID, preserving Cc for direct recipients
Mark Sapiro
mark at msapiro.net
Wed May 15 22:24:31 CEST 2013
On 05/15/2013 12:47 PM, Jed Brown wrote:
>
> Anyway, can I interpret your response as being that mailman always drops
> Cc and there is no configuration option?
I guess that depends on what you call a configuration option.
You could put this in mm_cfg.py
GLOBAL_PIPELINE.remove('AvoidDuplicates')
That would just remove the Handler so every list member that is a direct
recipient would receive both the list and the direct copy regardless of
her avoid duplicates setting, or you could apply the attached patch to
Mailman/Handlers/AvoidDuplicates.py, or you could patch the module but
name the patched module say Mailman/Handlers/MyAvoidDuplicates.py and put
GLOBAL_PIPELINE.insert(GLOBAL_PIPELINE.index('AvoidDuplicates'),
'MyAvoidDuplicates')
GLOBAL_PIPELINE.remove('AvoidDuplicates')
im mm_cfg.py. See the FAQ at <http://wiki.list.org/x/l4A9>. Note: the
first line is wrapped but it doesn't matter because of Python's implies
continuation inside parens. Also note that this latter method is
preferable to simple patching AvoidDuplicates.py for reasons mentioned
in the FAQ.
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
-------------- next part --------------
--- Mailman/Handlers/AvoidDuplicates.py 2008-11-14 10:54:42.000000000 -0800
+++ Mailman/Handlers/AvoidDuplicates.patched 2013-05-15 13:05:58.477617000 -0700
@@ -85,8 +85,8 @@
if send_duplicate:
msgdata.setdefault('add-dup-header', {})[r] = True
newrecips.append(r)
- elif ccaddrs.has_key(r.lower()):
- del ccaddrs[r.lower()]
+# elif ccaddrs.has_key(r.lower()):
+# del ccaddrs[r.lower()]
else:
# Otherwise, this is the first time they've been in the recips
# list. Add them to the newrecips list and flag them as having
More information about the Mailman-Users
mailing list