home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume1 / rn / patch03 < prev    next >
Text File  |  1986-11-30  |  3KB  |  143 lines

  1. Patch #: 3
  2. Priority: VERY LOW
  3. Subject: search commands shouldn't report things junked that already were
  4. >From: markb@sdcrdcf.UUCP (Mark Biggar)
  5.  
  6. Description:
  7.     Search and number-range commands that junk articles or mark them
  8.     unread will report all articles found as junked or marked unread
  9.     even if they already were read or unread, respectively.
  10.  
  11. Fix:    From rn, say "| patch -d DIR", where DIR is your rn source directory.
  12.     Outside of rn, say "cd DIR; patch <thisarticle".  If you don't have
  13.     the patch program, apply the following by hand, or get patch.
  14.  
  15.     Warning: this patch is not reversed.  If the patch program says
  16.     it is, then this patch has already been applied, and you should
  17.     not apply it again.
  18.  
  19.     If patch indicates that patchlevel is the wrong version, you may need
  20.     to apply one or more previous patches, or the patch may already
  21.     have been applied.  See the patchlevel file to find out what has or
  22.     has not been applied.  In any event, don't continue with the patch.
  23.  
  24. Index: patchlevel
  25. Prereq: 2
  26. 1c1
  27. < Patch #: 2
  28. ---
  29. > Patch #: 3
  30.  
  31. Index: ngstuff.c
  32. Prereq: 4.3
  33. *** ngstuff.c.old    Fri May 10 14:32:57 1985
  34. --- ngstuff.c    Fri May 10 14:32:59 1985
  35. ***************
  36. *** 1,4
  37. ! /* $Header: ngstuff.c,v 4.3 85/05/01 11:45:03 lwall Exp $
  38.    *
  39.    * $Log:    ngstuff.c,v $
  40.    * Revision 4.3  85/05/01  11:45:03  lwall
  41.  
  42. --- 1,4 -----
  43. ! /* $Header: ngstuff.c,v 4.3.1.2 85/05/10 14:31:52 lwall Exp $
  44.    *
  45.    * $Log:    ngstuff.c,v $
  46.    * Revision 4.3.1.2  85/05/10  14:31:52  lwall
  47. ***************
  48. *** 1,6
  49.   /* $Header: ngstuff.c,v 4.3 85/05/01 11:45:03 lwall Exp $
  50.    *
  51.    * $Log:    ngstuff.c,v $
  52.    * Revision 4.3  85/05/01  11:45:03  lwall
  53.    * Baseline for release with 4.3bsd.
  54.    * 
  55.  
  56. --- 1,12 -----
  57.   /* $Header: ngstuff.c,v 4.3.1.2 85/05/10 14:31:52 lwall Exp $
  58.    *
  59.    * $Log:    ngstuff.c,v $
  60. +  * Revision 4.3.1.2  85/05/10  14:31:52  lwall
  61. +  * Prevented "Junked" or "Marked unread" when no state change.
  62. +  * 
  63. +  * Revision 4.3.1.1  85/05/10  11:36:45  lwall
  64. +  * Branch for patches.
  65. +  * 
  66.    * Revision 4.3  85/05/01  11:45:03  lwall
  67.    * Baseline for release with 4.3bsd.
  68.    * 
  69. ***************
  70. *** 223,229
  71.       if (isspace(ch) || ch == ':')
  72.           continue;
  73.       if (ch == 'j') {
  74. !         mark_as_read(art);
  75.   #ifdef VERBOSE
  76.           IF(verbose)
  77.               fputs("\tJunked",stdout);
  78.  
  79. --- 229,236 -----
  80.       if (isspace(ch) || ch == ':')
  81.           continue;
  82.       if (ch == 'j') {
  83. !         if (!was_read(art)) {
  84. !         mark_as_read(art);
  85.   #ifdef VERBOSE
  86.           IF(verbose)
  87.               fputs("\tJunked",stdout);
  88. ***************
  89. *** 228,233
  90.           IF(verbose)
  91.               fputs("\tJunked",stdout);
  92.   #endif
  93.       }
  94.       else if (ch == 'm') {
  95.           unmark_as_read(art);
  96.  
  97. --- 235,241 -----
  98.           IF(verbose)
  99.               fputs("\tJunked",stdout);
  100.   #endif
  101. +         }
  102.       }
  103.       else if (ch == 'm') {
  104.           if (was_read(art)) {
  105. ***************
  106. *** 230,236
  107.   #endif
  108.       }
  109.       else if (ch == 'm') {
  110. !         unmark_as_read(art);
  111.   #ifdef VERBOSE
  112.           IF(verbose)
  113.               fputs("\tMarked unread",stdout);
  114.  
  115. --- 238,245 -----
  116.           }
  117.       }
  118.       else if (ch == 'm') {
  119. !         if (was_read(art)) {
  120. !         unmark_as_read(art);
  121.   #ifdef VERBOSE
  122.           IF(verbose)
  123.               fputs("\tMarked unread",stdout);
  124. ***************
  125. *** 235,240
  126.           IF(verbose)
  127.               fputs("\tMarked unread",stdout);
  128.   #endif
  129.       }
  130.       else if (ch == 'M') {
  131.   #ifdef DELAYMARK
  132.  
  133. --- 244,250 -----
  134.           IF(verbose)
  135.               fputs("\tMarked unread",stdout);
  136.   #endif
  137. +         }
  138.       }
  139.       else if (ch == 'M') {
  140.   #ifdef DELAYMARK
  141.  
  142.  
  143.