Mercurial > noffle
comparison src/pseudo.c @ 155:22b81617d427 noffle
[svn] applied patch from Matija Nalis: better handling of inconsistent counters
at remote server; do not read overview on each group command
author | enz |
---|---|
date | Tue, 05 Dec 2000 19:50:09 +0000 |
parents | 160a0af71cf8 |
children | 24d4cd032da5 |
comparison
equal
deleted
inserted
replaced
154:b2a4f839affd | 155:22b81617d427 |
---|---|
1 /* | 1 /* |
2 pseudo.c | 2 pseudo.c |
3 | 3 |
4 $Id: pseudo.c 111 2000-05-19 15:13:44Z bears $ | 4 $Id: pseudo.c 236 2000-12-05 19:50:09Z enz $ |
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 |
248 Db_storeArt( msgId, DynStr_str( artTxt ) ); | 248 Db_storeArt( msgId, DynStr_str( artTxt ) ); |
249 del_DynStr( artTxt ); | 249 del_DynStr( artTxt ); |
250 } | 250 } |
251 | 251 |
252 void | 252 void |
253 Pseudo_cntInconsistent( const char *grp, int first, int last, int next ) | 253 Pseudo_cntInconsistent( const char *grp, int first, int last, int next, int refetch ) |
254 { | 254 { |
255 DynStr *info; | 255 DynStr *info; |
256 Str s; | 256 Str s; |
257 | 257 |
258 info = new_DynStr( 10000 ); | 258 info = new_DynStr( 10000 ); |
269 snprintf( s, MAXCHAR, "Remote first article number: %i", first ); | 269 snprintf( s, MAXCHAR, "Remote first article number: %i", first ); |
270 DynStr_appLn( info, s ); | 270 DynStr_appLn( info, s ); |
271 snprintf( s, MAXCHAR, "Remote last article number: %i", last ); | 271 snprintf( s, MAXCHAR, "Remote last article number: %i", last ); |
272 DynStr_appLn( info, s ); | 272 DynStr_appLn( info, s ); |
273 snprintf( s, MAXCHAR, "Remote next article number: %i", next ); | 273 snprintf( s, MAXCHAR, "Remote next article number: %i", next ); |
274 DynStr_appLn( info, s ); | |
275 snprintf( s, MAXCHAR, "Refetching from article: %i", refetch ); | |
274 DynStr_appLn( info, s ); | 276 DynStr_appLn( info, s ); |
275 genPseudo( "Article counter inconsistent", DynStr_str( info ) ); | 277 genPseudo( "Article counter inconsistent", DynStr_str( info ) ); |
276 } | 278 } |
277 del_DynStr( info ); | 279 del_DynStr( info ); |
278 } | 280 } |