/var/list/.bin/showlist is in smartlist 3.15-22.
This file is owned by list:list, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | #! /bin/sh
: &&O='cd .' || exec /bin/sh "$0" $argv:q # we're in a csh, feed myself to sh
$O || exec /bin/sh "$0" "$@" # we're in a buggy zsh
#########################################################################
# showlist To show list status and details #
# #
# Created by Alan K. Stebbens <aks@hub.ucsb.edu> #
#########################################################################
# $Id: showlist,v 1.1 1995/10/30 02:58:34 srb Exp $
echo showlist: Customise first
exit 64
# Site configuration (should be externalized)
#
domain=hub.ucsb.edu
listmaster=lists@$domain
admin="\"Mailing List Mailer-Daemon\" <$listmaster>"
#
cd $HOME
# Syntax: showlist [-d] [-s] [-l] [list ...]
test=test # /bin/test
ln=ln # /bin/ln
rm=rm # /bin/rm
cp=cp # /bin/cp
echo=echo # /bin/echo
cat=cat # /bin/cat
awk=awk # /bin/awk
SENDMAIL=/usr/lib/sendmail
usage="usage: showlist [-d] [-s] [-l] [list ...]"
lists=
summary=1
while $test $# -gt 0
do
case "$1" in
-d|-debug) debug=1 ;;
-s|-summary) summary=1 long= ;;
-l|-long) long=1 summary= ;;
-*) $echo $usage 1>&2 && exit 64 ;;
*) lists="$lists $1" ;;
esac
shift
done
if $test -z "$lists" ; then
lists="`ls | tr '\012' ' '`"
fi
ifdebug () {
if $test -n "$debug" ; then
"$@"
fi
}
ifndebug () {
if $test -z "$debug" ; then
"$@"
fi
}
decho () {
ifdebug echo "$@"
}
necho () {
ifndebug echo "$@"
}
# getvar flag pattern
getvar () {
pat="${2:-$1}"
val="`$awk '/^'$pat'/{print \$3;exit}' $list/rc.custom $list/rc.init 2>/dev/null`"
if $test "${val}" = "#"; then
val="`$awk '/^'$pat'/{print \$2;exit}' $list/rc.custom $list/rc.init 2>/dev/null`"
fi
eval "$1=\"$val\""
}
# showvar VAR [LBL]
showvar () {
var=$1
lbl="${2:-$1}"
getvar $var
showval "$lbl" "$val"
}
# showflag VAR [LBL] (null value == "no")
showflag () {
var=$1
lbl="${2:-$1}"
getvar $var
val="${val:-no}"
showval "$lbl" "$val"
}
# showval LBL VAL
showval () {
lbl="${1:?'Missing label'}"
val="${2:-$val}"
$awk "BEGIN{printf(\"%30s: %s\n\", \"$lbl\", \"$val\")}" </dev/null
}
#######################
# Scan the lists and show a summary or details
for list in $lists
do
# does the list exist?
$test -d $list || continue
listaddr=${list}@${domain}
listreq=${list}-request@${domain}
getvar digest_flag
if $test -n "$summary" ; then
echo "List \"$list\" summary:"
else
echo "List \"$list\" details:"
fi
showvar maintainer "Owner"
showflag X_COMMAND "Remote commands"
if $test -n "$X_COMMAND"; then
showvar X_COMMAND_PASSWORD Password
fi
showvar moderated_flag "Moderated"
showflag digest_flag "Digested"
$test -n "$summary" && continue
moderators=
if $test -f $list/moderators; then
moderators="`(cat $list/moderators 2>/dev/null) | tr '\012' ' '`"
fi
showval Moderators "$moderators"
showvar unsub_assist "Unsubscribe assistance"
showflag foreign_submit "Foreign submissions"
showflag restrict_archive "Restrict archive access"
showflag force_subscribe "Force subscriptions"
showflag auto_subscribe "Automatic subscribes"
showflag auto_unsubscribe "Automatic unsubscribes"
showflag auto_help "Automatic help"
showflag cc_requests "Cc requests"
showflag cc_unsubrequests "Cc unsubscribe requests"
showflag pass_diverts "Pass diverted requests"
showvar reply_to "Reply-to"
showvar digest_age "Digest age limit (seconds)"
showvar digest_size "Digest size limit"
showvar undigested_list "Undigested list"
showvar size_limit "Size limit"
showvar idcache_size "ID cache size"
showvar archive_hist "Archive history limit"
showvar archive_log "Archive log"
showvar subscribe_log "Subscribe log"
showvar maxhist "Bounce history limit"
showvar minbounce "Bounce minimum"
showvar cutoff_bounce "Bounce text limit"
showvar match_threshold "Close match threshold"
showvar medium_threshold "Medium match threshold"
showvar loose_threshold "Loose match threshold"
done
|