home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!van-bc!rwsys!root
- From: root@rwsys.wimsey.bc.ca (Superuser)
- Newsgroups: comp.os.coherent
- Distribution: world
- Subject: Re: readonly Newsreader ??
- References: <93010798@forthdv.rmt.sub.org>
- Message-ID: <9301107280@rwsys.wimsey.bc.ca>
- Organization: RWSYS Exporter BBS system
- Date: Sun, 10 Jan 93 08:57:56 PST
- Lines: 90
-
- stephan@forthdv.rmt.sub.org (Stephan Forth) writes:
- > I am looking for a special Newsreader. I need one that:
- > -is ONLY for reading news (no posting, no follow-up, no mail response)
- > -could be configured to read only local newsgroups OR Usenet groups
- > -has NO ability to shell-out
- In conjuction with Exporter BBS development, I made a version of tass
- that runs read only and offers no shell if invoked with a -r on the
- command line. Never thought about restricting the newsgroups though.
-
- Here's the diff for main.c:
- ------------------------cut here --------------
- 36 c 36
- <
- ---
- > int ronly = FALSE; /* if true, read only, & no shell */
- 112 c 112
- < while ((c = getopt(argc, argv, "f:u")) != -1) {
- ---
- > while ((c = getopt(argc, argv, "f:ur")) != -1) {
- 117 c 117,119
- <
- ---
- > case 'r':
- > ronly = TRUE;
- > break;
- 1104 c 1106
- <
- ---
- > if( ronly ) return( 0 );
- ------------------------cut here --------------
-
- here's the diff for misc.c:
- ------------------------cut here --------------
- 280 a 281
- > extern int ronly;
- 282 d 282
- <
- 290 c 290
- <
- ---
- > if( ronly ) return( 0 );
- 313 c 313
- <
- ---
- > if( ronly ) return( 0 );
- 342 c 342
- <
- ---
- > if( ronly ) return( 0 );
- ------------------------cut here --------------
-
- here's the diff for page.c:
- ------------------------cut here --------------
- 935 a 936
- > extern int ronly;
- 937 d 937
- <
- 945 c 945
- <
- ---
- > if( ronly ) return(0);
- 1039 c 1039
- <
- ---
- > if( ronly ) return(0);
- 1127 c 1127
- <
- ---
- > if( ronly ) return(0);
- 1233 c 1233
- <
- ---
- > if( ronly ) return(0);
- 1285 c 1285
- <
- ---
- > if( ronly ) return(0);
- 1340 c 1340
- <
- ---
- > if( ronly ) return(0);
- ------------------------cut here --------------
- Hope this helps. BTW, if this diff doesn't work, e-mail me.
-
- Randy
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- root@rwsys.wimsey.bc.ca (Randy Wright) Exporter BBS
- (604) 581-0518 8N1 (Bell 103/212A, V22.bis) interactive login: guest
- Anon uucp: ogin: uguest MACHINE=uguest LOGNAME=uguest MYNAME=rwsys
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-