From 8c0bebed9a28dbe1256e977cdd26fd0ebaed863c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 19 May 2009 11:06:19 +0000 Subject: [PATCH] count --- plc-orphan-accounts.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plc-orphan-accounts.py b/plc-orphan-accounts.py index 8469f05..c2f9b59 100755 --- a/plc-orphan-accounts.py +++ b/plc-orphan-accounts.py @@ -49,13 +49,15 @@ def main_duplicates(): header ('Listing all duplicate accounts') locals = GetPersons({'peer_id':None,'-SORT':'email'}) locals.sort(sort_email) + index=1 for local in locals: remotes=GetPersons({'email':local['email'],'~peer_id':None}) if remotes: - list_person('---',local) + list_person('%3d'%index,local) for remote in remotes: list_person('dup',remote) - + + index+=1 def main(): main_orphans() main_duplicates() -- 2.47.0