Mercurial > noffle
comparison src/client.c @ 123:ec190bad201b noffle
[svn] Applied patch from M.Nalis for fixing a small problem with
the printed counters while fetching articles.
author | enz |
---|---|
date | Sat, 22 Jul 2000 07:21:11 +0100 |
parents | 05f50c1761d9 |
children | 3c71e28c8eef |
comparison
equal
deleted
inserted
replaced
122:d00adc26d77a | 123:ec190bad201b |
---|---|
1 /* | 1 /* |
2 client.c | 2 client.c |
3 | 3 |
4 $Id: client.c 174 2000-07-19 07:02:45Z enz $ | 4 $Id: client.c 177 2000-07-22 06:21:11Z 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 |
1028 Log_inf( "Retrieving article list" ); | 1028 Log_inf( "Retrieving article list" ); |
1029 s = new_DynStr( (int)strlen( list ) ); | 1029 s = new_DynStr( (int)strlen( list ) ); |
1030 p = list; | 1030 p = list; |
1031 while ( ( p = Utl_getLn( msgId, p ) ) ) | 1031 while ( ( p = Utl_getLn( msgId, p ) ) ) |
1032 if ( ! Db_contains( msgId ) ) | 1032 if ( ! Db_contains( msgId ) ) |
1033 Log_err( "Skipping retrieving of %s (not prepared in database)", | 1033 Log_err( "[%d/%d] Skipping retrieving of %s (not prepared in database)", |
1034 msgId ); | 1034 ++(*artcnt), artmax, msgId ); |
1035 else if ( ! ( Db_status( msgId ) & DB_NOT_DOWNLOADED ) ) | 1035 else if ( ! ( Db_status( msgId ) & DB_NOT_DOWNLOADED ) ) |
1036 Log_inf( "Skipping %s (already retrieved)", msgId ); | 1036 Log_inf( "[%d/%d] Skipping %s (already retrieved)", ++(*artcnt), artmax, msgId ); |
1037 else if ( ! putCmdNoFlush( "ARTICLE %s", msgId ) ) | 1037 else if ( ! putCmdNoFlush( "ARTICLE %s", msgId ) ) |
1038 { | 1038 { |
1039 retrievingFailed( msgId, "Connection broke down" ); | 1039 retrievingFailed( msgId, "Connection broke down" ); |
1040 del_DynStr( s ); | 1040 del_DynStr( s ); |
1041 return; | 1041 return; |