home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / unix / volume02 / pnews.pch < prev    next >
Encoding:
Internet Message Format  |  1988-09-11  |  880 b 

  1. From: ihnp4!amdcad!idi!bene!luke!itkin
  2. Subject: Patch to Pnews to save article
  3. Reply-To: itkin@luke.UUCP (Steven List)
  4. Newsgroups: mod.sources
  5. Approved: john@genrad.UUCP
  6.  
  7. Mod.sources:  Volume 2, Issue 20
  8. Submitted by: itkin@luke.UUCP (Steven List)
  9.  
  10.  
  11. The following is a simple patch to Pnews to save the current article.
  12. It is not perfect (it may save articles when you don't necessarily want
  13. to), but it is better than not saving them at all!
  14. ------------------------------------------------------------------------
  15. *** Pnews.old    Thu Jun  6 12:44:33 1985
  16. --- Pnews    Sun Jul 21 11:59:24 1985
  17. ***************
  18. *** 397,402
  19.       state=cleanup
  20.       ;;
  21.       cleanup)
  22.       $rm -f $tmpart
  23.       exit
  24.       ;;
  25.  
  26. --- 397,404 -----
  27.       state=cleanup
  28.       ;;
  29.       cleanup)
  30. +     $cat $tmpart >> ${HOME-$LOGDIR}/Articles
  31. +     $echo "Article appended to ${HOME-$LOGDIR}/Articles"
  32.       $rm -f $tmpart
  33.       exit
  34.       ;;
  35.  
  36.  
  37.  
  38.