aboutsummaryrefslogtreecommitdiffstats
path: root/listsize
blob: e677fd7a933e4b99b78ce39e099baae0d75cc4d8 (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]*\) members total.*/s//\1/p'
# end