#!/bin/bash
#
# Name: scanowners.bash
#
# Purpose: Scan all LISTSERV lists for a target
# (target looked for on "owners= lines only)
#
# 2015-03-04 [log in to unmask]
#
home="/home/listserv/home"
bin="/home/listserv"
let "count=0"
let "nlists=0"
for i in $home/*.list; do
let "nlists+=1"
$bin/listview -h $i \
| grep -i "Owner= " \
| grep -i "$1" \
> /dev/null && echo $i && let "count+=1"
done
echo "$1 found on" $count "of" $nlists "lists."
Greetings all. We maintain approximately 1000 lists. I would guess most are inactive. It has been suggested that we clean these up via those showing zero subscribers for 6 months or those having no messages in the past 15 months. Also wanted is a list of all list owners to be emailed whether lists are needed. Not sure whether any of this is practical or can even be done. Any ideas/suggestions outside of manually going through each list is appreciated.
To unsubscribe from the LSTSRV-L list, click the following link:
http://peach.ease.lsoft.com/scripts/wa-PEACH.exe?SUBED1=LSTSRV-L&A=1