diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-02-15 04:41:07 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-02-15 04:41:07 +0000 |
commit | da6d959ca895332adbe2ebf2347bd7869f930779 (patch) | |
tree | 58df052ff2c316c8bf26d45dab7e777cde0a6bde /listsize | |
parent | 1b5a97ce5d08edfae7fd581bd942290d35242530 (diff) | |
download | fetchmail-da6d959ca895332adbe2ebf2347bd7869f930779.tar.gz fetchmail-da6d959ca895332adbe2ebf2347bd7869f930779.tar.bz2 fetchmail-da6d959ca895332adbe2ebf2347bd7869f930779.zip |
Initial revision
svn path=/trunk/; revision=3580
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 + |