From fa93c0ca096369d39e9a38f272784b1110ef8f70 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Wed, 22 Sep 2004 12:39:38 +0000 Subject: [PATCH] dupes handling --- scripts/mailman/mailman-rpc.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/mailman/mailman-rpc.py b/scripts/mailman/mailman-rpc.py index 583c858..914923d 100755 --- a/scripts/mailman/mailman-rpc.py +++ b/scripts/mailman/mailman-rpc.py @@ -18,7 +18,7 @@ #* Foundation, Inc., * #* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * #*************************************************************************** -# $Id: mailman-rpc.py,v 1.27 2004-09-22 11:42:40 x2000habouzit Exp $ +# $Id: mailman-rpc.py,v 1.28 2004-09-22 12:39:38 x2000habouzit Exp $ #*************************************************************************** import base64, MySQLdb, os, getopt, sys, MySQLdb.converters @@ -315,8 +315,13 @@ def get_pending_ops((userdesc,perms),listname): if not is_admin_on(userdesc, perms, mlist): return 0 subs = [] + seen = [] for id in mlist.GetSubscriptionIds(): time, addr, fullname, passwd, digest, lang = mlist.GetRecord(id) + if addr in seen: + mlist.HandleRequest(id, mm_cfg.DISCARD) + continue + seen.append(addr) subs.append({ 'id' : id, 'name' : fullname, -- 2.1.4