Mercurial > noffle
comparison src/fetch.c @ 102:38b0a1532a37 noffle
[svn] Only track remote message no when subscribed
author | bears |
---|---|
date | Mon, 05 Jun 2000 09:57:05 +0100 |
parents | 28aeb0b93509 |
children | 05f50c1761d9 |
comparison
equal
deleted
inserted
replaced
101:ce8191c38f44 | 102:38b0a1532a37 |
---|---|
1 /* | 1 /* |
2 fetch.c | 2 fetch.c |
3 | 3 |
4 $Id: fetch.c 85 2000-05-14 07:12:23Z enz $ | 4 $Id: fetch.c 135 2000-06-05 08:57:05Z bears $ |
5 */ | 5 */ |
6 | 6 |
7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
8 #include <config.h> | 8 #include <config.h> |
9 #endif | 9 #endif |
75 } | 75 } |
76 | 76 |
77 void | 77 void |
78 Fetch_getNewArts( const char *name, FetchMode mode ) | 78 Fetch_getNewArts( const char *name, FetchMode mode ) |
79 { | 79 { |
80 int next, first, last, oldLast; | 80 int next, first, last; |
81 | 81 |
82 if ( ! Client_changeToGrp( name ) ) | 82 if ( ! Client_changeToGrp( name ) ) |
83 { | 83 { |
84 Log_err( "Could not change to group %s", name ); | 84 Log_err( "Could not change to group %s", name ); |
85 return; | 85 return; |
86 } | 86 } |
87 Cont_read( name ); | 87 Cont_read( name ); |
88 Client_rmtFirstLast( &first, &last ); | 88 Client_rmtFirstLast( &first, &last ); |
89 next = Grp_rmtNext( name ); | 89 next = Grp_rmtNext( name ); |
90 oldLast = Cont_last(); | 90 if ( next == GRP_RMT_NEXT_NOT_SUBSCRIBED ) |
91 next = first; | |
91 if ( next == last + 1 ) | 92 if ( next == last + 1 ) |
92 { | 93 { |
93 Log_inf( "No new articles in %s", name ); | 94 Log_inf( "No new articles in %s", name ); |
94 Cont_write(); | 95 Cont_write(); |
95 Grp_setFirstLast( name, Cont_first(), Cont_last() ); | 96 Grp_setFirstLast( name, Cont_first(), Cont_last() ); |