aboutsummaryrefslogtreecommitdiffstats
path: root/getstats.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-07 15:36:50 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-07 15:36:50 +0000
commitb1b8334afb2f046c5f3f1115974ce4e76a046cfa (patch)
tree55f8e91a87387b182a6d7a7b218723ac7ae0ad2e /getstats.py
parent2cc6b4f87dffa3393895b19b7ccf7f024218d5bb (diff)
downloadfetchmail-b1b8334afb2f046c5f3f1115974ce4e76a046cfa.tar.gz
fetchmail-b1b8334afb2f046c5f3f1115974ce4e76a046cfa.tar.bz2
fetchmail-b1b8334afb2f046c5f3f1115974ce4e76a046cfa.zip
Good, we can get list statistics again.
svn path=/trunk/; revision=3032
Diffstat (limited to 'getstats.py')
-rwxr-xr-xgetstats.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/getstats.py b/getstats.py
index 563b39e0..57d2f233 100755
--- a/getstats.py
+++ b/getstats.py
@@ -10,17 +10,9 @@ ln = commands.getoutput("co -p RCS/*.[chly],v 2>/dev/null | wc -l")
vers = commands.getoutput("sed -n -e '/VERSION/s/VERSION *= *\\(.*\\)/\\1/p' <Makefile")
print "fetchmail-" + vers + " (" + date + "), " + string.strip(ln) + " lines:"
-# Get mailing-list statistics.
-def bumpcount(str):
- global linecount
- linecount = linecount + 1
-ftp = ftplib.FTP('locke.ccil.org', 'esr', 'Malvern')
-linecount = 0
-ftp.retrlines("RETR fetchmail-friends", bumpcount)
-friends = linecount - 1
-linecount = 0
-ftp.retrlines("RETR fetchmail-announce", bumpcount)
-announce = linecount
-print "There are %d people on fetchmail-friends and %d on fetchmail-announce."% (friends, announce)
+# Use local listsize command to grab list statistics
+friends = commands.getoutput("listsize friends").strip()
+announce = commands.getoutput("listsize announce").strip()
+print "There are %s people on fetchmail-friends and %s on fetchmail-announce."% (friends, announce)
# getstats.py