diff options
author | Graham Wilson <graham@mknod.org> | 2004-08-30 01:34:48 +0000 |
---|---|---|
committer | Graham Wilson <graham@mknod.org> | 2004-08-30 01:34:48 +0000 |
commit | c3a80da98846c21a5d3f32a91669d78774a0aa6a (patch) | |
tree | 72bee6836c468c8527560821cd65618f2c7b115d /listsize | |
parent | fd2543489b53fe34a18b7204d6803bf527c0d198 (diff) | |
download | fetchmail-c3a80da98846c21a5d3f32a91669d78774a0aa6a.tar.gz fetchmail-c3a80da98846c21a5d3f32a91669d78774a0aa6a.tar.bz2 fetchmail-c3a80da98846c21a5d3f32a91669d78774a0aa6a.zip |
Move a handful of scripts (used for releases, testing, etc.) to dist-tools, so that they are not released in the tarball.
svn path=/trunk/; revision=3934
Diffstat (limited to 'listsize')
-rwxr-xr-x | listsize | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/listsize b/listsize deleted file mode 100755 index 73e25887..00000000 --- a/listsize +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# -# Mine list sizes from MailMan web interfaces -# -# * Must set environment variable FETCHMAIL_LIST_PASS to list admin password - -project="fetchmail" -admin="http://lists.berlios.de/mailman/admin" -adminpw=$FETCHMAIL_LIST_PASS - -list="$1" -if [ ! "$list" ]; then - echo "Usage: $0 list" 1>&2 - exit 1 -fi -case "$list" in -$project-*) - # already gave us the full name, e.g. fetchmail-announce - ;; -*) - # only gave us the last part of the name, e.g. announce - list="$project-$list" - ;; -esac - -hexpw=`echo "$adminpw" | od -t x1 -w64 | sed -e 's/^[0-9]*//' -e '/^ *$/d' -e 's/ /%/g'` -umask 077 -tmp="/tmp/$project-$list.listsize.$$" -# First get the login cookie... -curl -s -D "$tmp" "$admin/${list}?adminpw=$hexpw" >/dev/null -# Second gets the actual stat -curl -s -b "$tmp" "$admin/${list}/members" \ - | sed -n '/.*>(\([0-9][0-9]*\) members total.*/s//\1/p' -rm -f "$tmp" -# end - |