Asdcarl.130
net.news.b
utzoo!decvax!ucbvax!ucsfcgl!sdcarl!rusty
Sun Dec 27 13:05:24 1981
news delivermail aliases
The following shell script will make delivermail aliases for
each newsgroup whose name appears in the active file. It makes
two aliases for each newsgroup; one with the net./fa. prefix and
one without.

Bugs: It doesn't create the proper "request" aliases for the
arpanet mailing lists. It doesn't put in the proper number of
tabs between the lhs and rhs to make it look neat. When stripping
off the net./fa. prefix name collisions can occur, this isn't
handled.

: mkaliases
aliases=aliases
active=/usr/local/lib/news/active

: first the usenet and local newsgroups
newsgrps="net sdnet"
yes | rm -f ${aliases}
for ng in ${newsgrps}
do
       echo "# ${ng} newsgroups"
       grep "^${ng}\." ${active} | sed -e "s/^\(${ng}\..*\)/\1:        \"|\/usr\/local\/lib\/news\/recnews \1\"/" -e p -e "s/^${ng}\.//"
done > ${aliases}

: now the arpanet newsgroups
echo "# arpanet newsgroups" >> ${aliases}
grep "^fa\." ${active} | sed -e "s/^fa\.\(.*\)/&:       ucbvax!\1/" -e p -e "s/^fa\.//" >> ${aliases}

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.