From da6d959ca895332adbe2ebf2347bd7869f930779 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 15 Feb 2002 04:41:07 +0000 Subject: Initial revision svn path=/trunk/; revision=3580 --- listsize | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 listsize 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 + -- cgit v1.2.3