]> Pileus Git - ~andy/fetchmail/blob - listsize
Free fix to re-enable some text in error messages.
[~andy/fetchmail] / listsize
1 #!/bin/sh
2 #
3 # Mine list sizes from MailMan web interfaces
4
5 admin="http://lists.ccil.org/mailman/admin"
6 list="$1"
7 tmp="/usr/tmp/listsize.$$"
8
9 # First get the login cookie...
10 curl -s -D $tmp $admin/fetchmail-${list}?adminpw=mypaswrd >/dev/null
11 # Second gets the actual stat
12 curl -s -b $tmp $admin/fetchmail-${list}/members \
13         | sed -n '/.*>\([0-9][0-9]*\) members total.*/s//\1/p'
14 # end
15