Mercurial > noffle
comparison src/client.c @ 102:38b0a1532a37 noffle
[svn] Only track remote message no when subscribed
author | bears |
---|---|
date | Mon, 05 Jun 2000 09:57:05 +0100 |
parents | c3312022e657 |
children | f782184db8bc |
comparison
equal
deleted
inserted
replaced
101:ce8191c38f44 | 102:38b0a1532a37 |
---|---|
1 /* | 1 /* |
2 client.c | 2 client.c |
3 | 3 |
4 $Id: client.c 114 2000-05-19 15:16:50Z bears $ | 4 $Id: client.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 |
452 new numbering at the readers if noffle is re-installed */ | 452 new numbering at the readers if noffle is re-installed */ |
453 if ( first != 0 ) | 453 if ( first != 0 ) |
454 Grp_setFirstLast( grp, first, first - 1 ); | 454 Grp_setFirstLast( grp, first, first - 1 ); |
455 else | 455 else |
456 Grp_setFirstLast( grp, 1, 0 ); | 456 Grp_setFirstLast( grp, 1, 0 ); |
457 Grp_setRmtNext( grp, first ); | |
458 Grp_setServ( grp, client.serv ); | 457 Grp_setServ( grp, client.serv ); |
459 Grp_setPostAllow( grp, postAllow ); | 458 Grp_setPostAllow( grp, postAllow ); |
460 } | 459 } |
461 else | 460 else |
462 { | 461 { |
976 | 975 |
977 txt = DynStr_str( s ); | 976 txt = DynStr_str( s ); |
978 err = ! Db_storeArt( msgId, txt ); | 977 err = ! Db_storeArt( msgId, txt ); |
979 if ( ! err ) | 978 if ( ! err ) |
980 { | 979 { |
981 Str supersedeId; | 980 Str supersedeIds; |
982 | 981 |
983 if ( Prt_searchHeader( txt, "Supersedes", supersedeId ) ) | 982 if ( Prt_searchHeader( txt, "Supersedes", supersedeIds ) ) |
984 Ctrl_cancel( supersedeId ); | 983 { |
984 ItemList *ids; | |
985 const char *msgId; | |
986 | |
987 ids = new_Itl( supersedeIds, " \n\t" ); | |
988 for ( msgId = Itl_first( ids ); | |
989 msgId != NULL; | |
990 msgId = Itl_next( ids ) ) | |
991 Ctrl_cancel( msgId ); | |
992 del_Itl( ids ); | |
993 } | |
985 } | 994 } |
986 } | 995 } |
987 else | 996 else |
988 retrievingFailed( msgId, "Connection broke down" ); | 997 retrievingFailed( msgId, "Connection broke down" ); |
989 del_DynStr( s ); | 998 del_DynStr( s ); |