[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] fetchnews downloads latest articles first?



Bjorn Halvor Solberg wrote:
> 
[...]
> Is there a way to make fetchnews get the older articles first, up to the
> newest, so that older articles will end up with a lower number than newer
> articles (which is the intuitive way)? [...]

Yes, and it's not very hard.
I made the changes and my news reader (N.C. 4.7) seems to be happier, me too!
:-)

For those interested I join a patch to achieve that.

Operations:
- switch to the leafnode source directory
- do a backup for source files to be modified.
  e.g. cp -p fetchnews.c fetchnews.c.org
- apply the patch(es)
  e.g. patch < my_patch_to_do
  you should see the message:  patching file `fetchnews.c'
- build the stuff with make.
- discard all symbols with the command strip: strip fetchnews
- copy fetchnews where it should be.
  (you can backup your previous executable before)

This patch works for 1.9.13 and 1.9.14.
You can do this after my other patch posted on May 24 or alone but not the
opposite.

Hope there is no ... (of course)

-- 
                 no news !...     good news ?...


*** fetchnews.c		Wed May 24 23:03:56 2000
--- fetchnews.c.new	Fri May 26 20:28:02 2000
***************
*** 14,19 ****
--- 14,20 ----
  Modified by Cornelius Krasel <krasel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>.
  Copyright of the modifications 1998, 1999.
  
+ Patch applied: 000526 - o.rousseaux@xxxxxxxxxxxxxx 
  See file COPYING for restrictions on the use of this software.
  */
  
***************
*** 678,683 ****
--- 679,685 ----
      if ( server > last ) {
  	if ( verbose > 1 )
  	    printf( "%s: no new articles\n", g->name );
+ 	syslog( LOG_INFO, "%s: no new articles\n", g->name);
  	return server;
      }
  
***************
*** 784,791 ****
  
      /* now we have a list of articles in stufftoget[] */
      /* let's get the header and possibly bodies of these */
      while ( outstanding > 0 ) {
!         i = outstanding-1;
  	outstanding--;
  	if ( !stufftoget[i] )
  	    continue;
--- 786,794 ----
  
      /* now we have a list of articles in stufftoget[] */
      /* let's get the header and possibly bodies of these */
+     i = -1;
      while ( outstanding > 0 ) {
! 	i++;
  	outstanding--;
  	if ( !stufftoget[i] )
  	    continue;