Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ttrdc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!mhuxv!mhuxh!mhuxj!mhuxn!ihnp4!mgnetp!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP (Daniel R. Levy) Newsgroups: net.news Subject: Re: cleaning up the net -- software solutions proposed Message-ID: <289@ttrdc.UUCP> Date: Sun, 21-Jul-85 16:00:12 EDT Article-I.D.: ttrdc.289 Posted: Sun Jul 21 16:00:12 1985 Date-Received: Wed, 24-Jul-85 21:05:35 EDT References: <2961@nsc.UUCP> <331@phri.UUCP> <3013@nsc.UUCP> Distribution: net Organization: AT&T, Computer Systems Division, Skokie, IL Lines: 37 chuqui@nsc.UUCP (Chuq Von Rospach) <3013@nsc.UUCP>: >> How about having a file which is a list of productions. > >Actually, newsgroups seem to come with some regularity, and go with some >rarity, but that is beside the point. > >It is really easy to talk about building a text file that inews uses to >define the restrictions. It is even easier when you don't have to write the >parser for that file, or worry about eating CPU cycles every time an >article comes in (remember, the file implies reading the file, parsing the >file, and acting upon it -- a non-trivial load if it isn't done very >carefully. While I agree that there is a need for flexibility in the >restriction set, I don't want to write that kind of code, and I'm not at >all sure it is neccessary. All we REALLY need to do is add a function call >to inews called something like 'mung_header()', pass it the header >structure, and then put the function itself in the file 'header_munger.c'. >Then, when the ettiquette rules change, some person makes the modifications >and reposts the .c file, and everyone recompiles inews. That gives us the >same sort of flexibility without the overhead of fopen(), fclose(), and all >of those fread() calls. > >chuq Suppose... for the purposes of munging the headers of incoming messages from other machines, the restrictions were to be placed in environment variables imposed by some man-readable shell script which then execs over to the news handler? Would that help at all? -- ------------------------------- Disclaimer: The views contained herein are | dan levy | yvel nad | my own and are not at all those of my em- | an engihacker @ | ployer, my pets, my plants, my boss, or the | at&t computer systems division | s.a. of any computer upon which I may hack. | skokie, illinois | | "go for it" | Path: ..!ihnp4!ttrdc!levy -------------------------------- or: ..!ihnp4!iheds!ttbcad!levy