#!/bin/sh
EXPIRETIME=20d

SNROOT=/var/spool/sn
echo "Expiring news older than $EXPIRETIME in the sn system"
for GR in `ls -1 $SNROOT` ; do
  echo "  group $GR"
  su - news -c "snexpire -v -$EXPIRETIME $GR"
done
