home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / coherent / 6729 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.4 KB

  1. Path: sparky!uunet!van-bc!rwsys!root
  2. From: root@rwsys.wimsey.bc.ca (Superuser)
  3. Newsgroups: comp.os.coherent
  4. Distribution: world
  5. Subject: Re: readonly Newsreader ??
  6. References: <93010798@forthdv.rmt.sub.org>
  7. Message-ID: <9301107280@rwsys.wimsey.bc.ca>
  8. Organization: RWSYS Exporter BBS system
  9. Date: Sun, 10 Jan 93 08:57:56 PST
  10. Lines: 90
  11.  
  12. stephan@forthdv.rmt.sub.org (Stephan Forth) writes:
  13. > I am looking for a special Newsreader. I need one that:
  14. >     -is ONLY for reading news (no posting, no follow-up, no mail response)
  15. >     -could be configured to read only local newsgroups OR Usenet groups
  16. >     -has NO ability to shell-out
  17. In conjuction with Exporter BBS development, I made a version of tass 
  18. that runs read only and offers no shell if invoked with a -r on the 
  19. command line. Never thought about restricting the newsgroups though.
  20.  
  21. Here's the diff for main.c:
  22. ------------------------cut here --------------
  23. 36 c 36
  24. ---
  25. > int ronly = FALSE;            /* if true, read only, & no shell */
  26. 112 c 112
  27. <     while ((c = getopt(argc, argv, "f:u")) != -1) {
  28. ---
  29. >     while ((c = getopt(argc, argv, "f:ur")) != -1) {
  30. 117 c 117,119
  31. ---
  32. >         case 'r':
  33. >             ronly = TRUE;
  34. >             break;
  35. 1104 c 1106
  36. ---
  37. >     if( ronly ) return( 0 );
  38. ------------------------cut here --------------
  39.  
  40. here's the diff for misc.c:
  41. ------------------------cut here --------------
  42. 280 a 281
  43. > extern int ronly;
  44. 282 d 282
  45. 290 c 290
  46. ---
  47. >     if( ronly ) return( 0 );
  48. 313 c 313
  49. ---
  50. >     if( ronly ) return( 0 );
  51. 342 c 342
  52. ---
  53. >     if( ronly ) return( 0 );
  54. ------------------------cut here --------------
  55.  
  56. here's the diff for page.c:
  57. ------------------------cut here --------------
  58. 935 a 936
  59. > extern int ronly;
  60. 937 d 937
  61. 945 c 945
  62. ---
  63. >     if( ronly ) return(0);
  64. 1039 c 1039
  65. ---
  66. >     if( ronly ) return(0);
  67. 1127 c 1127
  68. ---
  69. >     if( ronly ) return(0);
  70. 1233 c 1233
  71. ---
  72. >     if( ronly ) return(0);
  73. 1285 c 1285
  74. ---
  75. >     if( ronly ) return(0);
  76. 1340 c 1340
  77. ---
  78. >     if( ronly ) return(0);
  79. ------------------------cut here --------------
  80. Hope this helps. BTW, if this diff doesn't work, e-mail me.
  81.  
  82. Randy
  83. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  84. root@rwsys.wimsey.bc.ca (Randy Wright)                     Exporter BBS
  85. (604) 581-0518  8N1  (Bell 103/212A, V22.bis)  interactive login: guest
  86. Anon uucp:  ogin: uguest     MACHINE=uguest LOGNAME=uguest MYNAME=rwsys
  87. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  88.