Path: utzoo!mnetor!uunet!husc6!mailrus!tut.cis.ohio-state.edu!bgsuvax!kutz From: kutz@bgsuvax.UUCP (Kenneth Kutz) Newsgroups: news.sysadmin Subject: Re: Unpacking comp.mail.maps files Message-ID: <1567@bgsuvax.UUCP> Date: 15 Feb 88 22:01:51 GMT References: <1059@vsedev.VSE.COM> Organization: Bowling Green State University B.G., Oh. Lines: 57 Summary: Unpacking comp.mail.maps files In article <1059@vsedev.VSE.COM>, ron@vsedev.VSE.COM (Ron Flax) writes: > This is really a query to determine the best, if there is one, way to > unpack comp.mail.maps files, since they seem to come in every day or > so now. > Here at BGSU we have an unbatching scheme as follows: In "/usr/lib/crontab" we have the following line: 30 5 2,9,16,23,30 * * news /usr/local/uuhosts -unbatch "uuhosts" is a script which will automatically unbatch the map files among other things. This script looks for a file called "Batch" in the "/usr/local/lib/news/maps/comp.mail.maps" directory. In this file is a list of maps which have been received and not unbatched yet. "uuhosts" then uses this list to unbatch the files. Another file which comes in to play is /usr/lib/news/sys which on our system looks like: tut:oh,net,world,comp,news,sci,rec,misc,soc,talk,usa,na,mod,to,to.tut:LF:/usr/spool/batch/tut.cis.ohio-state.edu #osu-cis:oh,net,world,comp,news,sci,rec,misc,soc,talk,usa,na,mod,to,to.osu-cis:LB: bgsuvax:net,world,comp,news,sci,rec,misc,soc,talk,oh,usa,na,mod,local,alt,to,to.bgsuvax:: bgsu-stu:local,to,to.bgsu-stu:: maps:world,comp.mail.maps:F:/usr/local/lib/news/maps/comp.mail.maps/Batch This file is the SYSTEM subscription list. Only those newsgroups that you specify will be the ones that your site receives. For example, bgsu-stu only receives local stuff since we don't want students reading news on this system. Once the files are "unbatched" (which uuhosts does by calling itself with the "-x" option), uuhosts calls /usr/local/undo_mail which looks like this: ----------------- Start of undo_mail --------------------- #! /bin/sh cd /usr/local/lib/news/maps/comp.mail.maps ../pathalias -dcbatt u* d* 2> /tmp/path_error | sort > paths cp /usr/local/lib/nmail.paths /usr/local/lib/opaths mv ./paths /usr/local/lib/nmail.paths cd /usr/local/lib chmod 644 nmail.where ./uuwhere chmod a-w nmail.where chmod a+r nmail.paths mail -s "Pathalias errors" someuser < /tmp/path_error ----------------- End of undo_mail ----------------------- I hope this helps some. You should be able to get these scripts and executables off the net. They should be archived in one of the sources news groups. Any questions e-mail to me. Good luck. Kenneth J. Kutz CSNET kutz@bgsu.edu Unix Systems Programmer UUCP ...!osu-cis!bgsuvax!kutz Bowling Green State Univ. PHONE (419) 372-7493