changeset 483:a02417000b7b noffle

[svn] * src/server.c: Whenever an article was read, all referenced articles were marked as INTERESTING and hence downloaded on the next fetch if in OVER or THREAD mode. This is contary to the docs and to my expectations.
author bears
date Fri, 22 Oct 2004 13:21:35 +0100
parents a04c52f87b6e
children d33568bb18ab
files ChangeLog src/server.c
diffstat 2 files changed, 9 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 14 00:26:48 2004 +0100
+++ b/ChangeLog	Fri Oct 22 13:21:35 2004 +0100
@@ -1,3 +1,10 @@
+Fri Oct 22 2004 Jim Hague <jim.hague@acm.org>
+
+* src/server.c: Whenever an article was read, all referenced articles
+  were marked as INTERESTING and hence downloaded on the next fetch if
+  in OVER or THREAD mode. This is contary to the docs and to my
+  expectations.
+	
 Wed Oct 13 2004 Jim Hague <jim.hague@acm.org>
 
 * docs/FAQ: Improve X-NOFFLE-Status entry.
--- a/src/server.c	Thu Oct 14 00:26:48 2004 +0100
+++ b/src/server.c	Fri Oct 22 13:21:35 2004 +0100
@@ -1,7 +1,7 @@
 /*
   server.c
 
-  $Id: server.c 629 2004-10-13 23:26:48Z bears $
+  $Id: server.c 630 2004-10-22 12:21:35Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -508,44 +508,15 @@
 }
 
 static void
-touchReferences( const char *msgId )
-{
-    Str s;
-    int len;
-    char *p;
-    const char *ref = Db_ref( msgId );
-
-    while ( TRUE )
-    {
-        p = s;
-        while ( *ref != '<' )
-            if ( *(ref++) == '\0' )
-                return;
-        len = 0;
-        while ( *ref != '>' )
-        {
-            if ( *ref == '\0' || ++len >= MAXCHAR - 1 )
-                return;
-            *(p++) = *(ref++);
-        }
-        *(p++) = '>';
-        *p = '\0';
-        if ( Db_contains( s ) )
-            touchArticle( s );
-    }
-}
-
-static void
 updateArt( const char *msgId )
-/* retrieve Article if in online mode */
 {
     unsigned status;
 
     touchArticle( msgId );
-    touchReferences( msgId );
     status = Db_status( msgId );
     if ( Online_true() && ( status & DB_NOT_DOWNLOADED ) )
     {
+	/* retrieve Article if in online mode */
         retrieveArt( msgId );
     }
 }