diff options
Diffstat (limited to 'listsize')
-rwxr-xr-x | listsize | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/listsize b/listsize new file mode 100755 index 00000000..33a07db3 --- /dev/null +++ b/listsize @@ -0,0 +1,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 + |