On Mon, 7 Jul 2003 10:31:35 -0700 (PDT) Dan Busarow firstname.lastname@example.org wrote:
This is no longer working for me. No idea when it stopped working since it is not used very often. When I run it I get
I use the following script. I think I found it on the mailman faq or posted to this list. Note that I use a pre-made empty request.db. I was getting over 100 requests a day on one of my lists.
#!/bin/bash # usage remove_held <list> # removes held messages RM=/bin/rm if [ $# != 1 ] then echo "usage: $0 <listname>" exit -1 fi LISTNAME=$1 EMPTY=~mailman/data/request.db.empty HELD=~mailman/data/heldmsg-$LISTNAME TARGET=~mailman/lists/$LISTNAME if [ ! -e $EMPTY ] then echo "$EMPTY not found" exit -1 fi if [ ! -d $TARGET ] then echo "$TARGET not found" exit -1 fi $RM -fv $HELD* cp $EMPTY $TARGET/request.db exit 0