comparison src/noffle.c @ 237:f8a91e2b4060 noffle

[svn] * src/fetchlist.h,src/fetchlist.c,src/noffle.c: Provide fetchmode for groups on fetchlist. * src/server.c: When fetching overviews online from groups on the fetchlist, fetch them in the appropriate fetch mode for the group. E.g. if group mode is FULL, fetch overviews and put all articles on articles required list to be fetched on the next noffle --fetch.
author bears
date Thu, 14 Feb 2002 17:14:34 +0000
parents 1ad2602f57db
children 0340b9c17edc
comparison
equal deleted inserted replaced
236:5ebb557435b2 237:f8a91e2b4060
8 not as server. If noffle runs as server, locking is performed while 8 not as server. If noffle runs as server, locking is performed while
9 executing NNTP commands, but temporarily released if no new command is 9 executing NNTP commands, but temporarily released if no new command is
10 received for some seconds (to allow multiple clients connect at the same 10 received for some seconds (to allow multiple clients connect at the same
11 time). 11 time).
12 12
13 $Id: noffle.c 358 2001-12-18 15:27:08Z mirkol $ 13 $Id: noffle.c 368 2002-02-14 17:14:34Z bears $
14 */ 14 */
15 15
16 #if HAVE_CONFIG_H 16 #if HAVE_CONFIG_H
17 #include <config.h> 17 #include <config.h>
18 #endif 18 #endif
279 * time is maxAge newer than the last access time. This ensures 279 * time is maxAge newer than the last access time. This ensures
280 * the low traffic groups don't get expired simply because 280 * the low traffic groups don't get expired simply because
281 * there's been nothing to read. 281 * there's been nothing to read.
282 */ 282 */
283 if ( ! Grp_local( grp ) 283 if ( ! Grp_local( grp )
284 && Fetchlist_contains( grp ) 284 && Fetchlist_contains( grp, NULL )
285 && autoUnsubscribe 285 && autoUnsubscribe
286 && difftime( Grp_lastPostTime(grp), 286 && difftime( Grp_lastPostTime(grp),
287 Grp_lastAccess( grp ) ) > maxAge ) 287 Grp_lastAccess( grp ) ) > maxAge )
288 { 288 {
289 Log_ntc( "Auto-unsubscribing from %s after %d " 289 Log_ntc( "Auto-unsubscribing from %s after %d "