aboutsummaryrefslogtreecommitdiffstats
path: root/listsize
blob: 33a07db3c4e78226346c549976c4b55a12e35cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# Mine list sizes from MailMan web interfaces

admin="http://lists.ccil.org/mailman/admin"
list="$1"
tmp="/usr/tmp/listsize.$$"

# First get the login cookie...
curl -s -D $tmp $admin/fetchmail-${list}?adminpw=mypaswrd >/dev/null
# Second gets the actual stat
curl -s -b $tmp $admin/fetchmail-${list}/members \
	| sed -n '/.*(\([0-9][0-9]*\).*/s//\1/p'
# end