diff src/client.c @ 102:38b0a1532a37 noffle

[svn] Only track remote message no when subscribed
author bears
date Mon, 05 Jun 2000 09:57:05 +0100
parents c3312022e657
children f782184db8bc
line wrap: on
line diff
--- a/src/client.c	Mon May 29 17:35:01 2000 +0100
+++ b/src/client.c	Mon Jun 05 09:57:05 2000 +0100
@@ -1,7 +1,7 @@
 /*
   client.c
 
-  $Id: client.c 114 2000-05-19 15:16:50Z bears $
+  $Id: client.c 135 2000-06-05 08:57:05Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -454,7 +454,6 @@
                 Grp_setFirstLast( grp, first, first - 1 );
             else
                 Grp_setFirstLast( grp, 1, 0 );
-            Grp_setRmtNext( grp, first );
             Grp_setServ( grp, client.serv );
 	    Grp_setPostAllow( grp, postAllow );
         }
@@ -978,10 +977,20 @@
         err = ! Db_storeArt( msgId, txt );
 	if ( ! err )
 	{
-	    Str supersedeId;
+	    Str supersedeIds;
+
+	    if ( Prt_searchHeader( txt, "Supersedes", supersedeIds ) )
+	    {
+		ItemList *ids;
+		const char *msgId;
 
-	    if ( Prt_searchHeader( txt, "Supersedes", supersedeId ) )
-		 Ctrl_cancel( supersedeId );
+		ids = new_Itl( supersedeIds, " \n\t" );
+		for ( msgId = Itl_first( ids );
+		      msgId != NULL;
+		      msgId = Itl_next( ids ) )
+		    Ctrl_cancel( msgId );
+		del_Itl( ids );
+	    }
 	}
     }
     else