🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #68152

Re: [slrn] inconsistent behaviour?

#68152
From: Thomas Schultz
Date: Sun, 26 Nov 2000 00:00
53 lines
2509 bytes
On 26 November 2000 at 17:47 GMT, Rick Pasotto <rickp@telocity.com> wrote:

> If I tag an article (by pressing '*') so that 'c'atchup doesn't mark
> it as read and then read the article it gets marked as read. However,
> if I then attempt to mark it 'u'ndread I can't do so without first
> untagging it.
> 
> Does anyone else consider this to be inconsistent?

I agree. The following patch prevents tagged articles from being
marked as read and makes it possible to mark articles as unread
without first having to untag them:

#v+
diff -ur slrn-0.9.6.3.orig/src/art.c slrn-0.9.6.3/src/art.c
--- slrn-0.9.6.3.orig/src/art.c	Mon Sep 18 00:35:28 2000
+++ slrn-0.9.6.3/src/art.c	Sun Nov 26 21:01:59 2000
@@ -1892,7 +1892,8 @@
 
 	slrn_error ("Article %d unavailable.", n);
 	
-	if (kill_refs && ((h->flags & HEADER_READ) == 0))
+	if (kill_refs && ((h->flags & HEADER_READ) == 0) &&
+	    ((h->flags & HEADER_TAGGED) == 0))
 	  {
 	     kill_cross_references (h);
 	     h->flags |= HEADER_READ;
@@ -2026,7 +2027,8 @@
    /* Only now may the article be said to be the current article */
    Slrn_Current_Article = a;
     
-   if (kill_refs && ((h->flags & HEADER_READ) == 0))
+   if (kill_refs && ((h->flags & HEADER_READ) == 0) &&
+       ((h->flags & HEADER_TAGGED) == 0))
      {
 	kill_cross_references (h);
 	h->flags |= HEADER_READ;
@@ -6336,7 +6338,6 @@
 
 static void undelete_header (Slrn_Header_Type *h) /*{{{*/
 {
-   if (h->flags & HEADER_TAGGED) return;
    h->flags &= ~HEADER_READ;
 }
 
#v-
-- 
Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/
 -> [2000-10-22] Matthias Friedrich joins the team
 -> [2000-09-27] Initial release of the slrn reference manual
 -> [2000-09-18] slrn 0.9.6.3 is out

Technical Details
Message-ID: <slrn922rhh.394.tststs@starflower.tststs.ddns.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn922j8r.2if.rickp@tc.niof.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn922rhh.394.tststs@starflower.tststs.ddns.org>
Subject: Re: [slrn] inconsistent behaviour?
Date: Sun, 26 Nov 2000 00:00:00 +0000
From: tststs@gmx.de (Thomas Schultz)
References: <slrn922j8r.2if.rickp@tc.niof.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 697977511
X-Server-Date: 26 Nov 2000 20:11:51 GMT
X-Complaints-To: abuse@cityweb.de
Organization: Pinguin online.
User-Agent: slrn/0.9.6.3pl2 (Linux)
NNTP-Posting-Date: 26 Nov 2000 20:14:35 GMT
Newsgroups: news.software.readers