On Mon, 2012-11-05 at 16:51:21 -0800, Mark Sapiro wrote: > ... > It would be possible to implement a per-list database of processed > message-ids with a custom handler very early in the pipeline, and > discard duplicates there. See <http://wiki.list.org/x/l4A9>.
Thanks Mark, this seems like the ideal approach. I'll try to hack something together borrowing from the various handlers (namely AvoidDuplicates.py) that are already in use. If I can understand how Mailman keeps the in-memory dictionary of Message-IDs mentioned in AvoidDuplicates.py, and implement an analogue for our use-case, that would do it. The goal is to check whether a tuple of (message-id, listname) already exists in the dict and, if it does, raise Errors.DiscardMessage; otherwise, add the tuple to the dict and do nothing. -- Sahil Tandon ------------------------------------------------------ Mailman-Users mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
