LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Paul Russell <[log in to unmask]>
Thu, 19 Feb 2004 14:07:45 -0500
text/plain (57 lines)
Nathan Brindle wrote:

> In 1.8e a LISTSERV maintainer (postmaster) can issue
>
> LISTS OWNED BY userid@host
>

The 'lists owned by' command will identify all lists owned by the specified
address. I interpreted the original message to mean that the poster needs to
generate a list of all list owners.

>> Is there an easier way to find all Listserv list owners in a domain? A
>> simple command to show all list owners email addresses and their
>> corresponding lists. A Unix grep command can be use in majordomo but I do
>> not know any command that will do the same in Listserv.

We do not have a script to generate a list of lists and their owners.

The following snippet of unix shell code will generate a sorted list of unique
primary owner addresses. This was extracted from a script which we use to
maintain our list owners' announcement list.

----- begin code snippet -----
# extract primary owner address from each .list file
cd $lsv_dir/home
echo "Scanning *.list files to create owner list ..."
for i in *.list; \
        do $lsv_dir/bin/listview -h $i \
                | tr "[:upper:]" "[:lower:]" | grep "owner=" \
                | head -n 1 \
                | sed -e 's/owner=//' -e 's/quiet://' -e 's/,/ /' \
                | nawk '{ print $2 }' | grep "@" \
                | grep -iv "request@" \
                | grep -iv "@$listhost1" \
                | grep -iv "@$listhost2" >> $raw_file ; \
        done
sort -u $raw_file -o $add_file
----- end -----

The statement 'grep -iv "request@"' eliminate owner addresses which point to
the generic list owner address of other lists. If you have moved or renamed
lists and have replaced the original list header with one containing a
'new-list=' statement, you may have specified the generic owner address of
the new list as the owner address for the original list. We do not want to
add these addresses to the announcement list as subscribers.

The last two grep statements eliminate owner addresses where the host portion
of the address is either of the two host names by which our server is known.
Some of our auto-generated lists have temporary owner addresses in the form
'role-account@$listhost1' or [log in to unmask] We do not want to add
these addresses to the announcement list as subscribers.

--
Paul Russell
Senior Systems Administrator
University of Notre Dame

ATOM RSS1 RSS2