# HG changeset patch
# User bears
# Date 1098447695 -3600
# Node ID a02417000b7bb4b520f9953c59dc13edfcfe92f5
# Parent  a04c52f87b6eb4022893ac82a84678d3199e5e7d
[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.

diff -r a04c52f87b6e -r a02417000b7b ChangeLog
--- 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.
diff -r a04c52f87b6e -r a02417000b7b src/server.c
--- 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 );
     }
 }