Mercurial > noffle
view src/fetch.h @ 191:28488e0e3630 noffle
[svn] * src/group.h,src/group.c,src/noffle.c,src/server.c: Grp_setLastAccess is
only ever called with last param as time(NULL), so remove it and call
time() inside the implementation of Grp_setLastAccess.
* src/client.c,src/group.h,src/group.c,src/noffle.c,src/post.c: Groups are
automatically unsubscribed when the last access to the group is older
than a particular threshold. However, for very low traffic groups, the
last access may exceed the threshold simply because there has been no new
article posted. In this case, rather than unsubscribe, update the group
last access time. This means that groups are now only unsubscribed if
the last access exceeds the threshold AND articles have arrived in the
group since. Add Grp_setLastPostTime() to track the last time an article
arrived in the group.
author | bears |
---|---|
date | Sat, 20 Oct 2001 14:23:46 +0100 |
parents | 09ca6eb5c7ff |
children |
line wrap: on
line source
/* fetch.h Do the daily business by using client.c $Id: fetch.h 279 2001-05-09 11:33:43Z bears $ */ #ifndef FETCH_H #define FETCH_H #if HAVE_CONFIG_H #include <config.h> #endif #include "common.h" #include "database.h" #include "fetchlist.h" Bool Fetch_init( const char *serv ); void Fetch_close( void ); Bool Fetch_getNewGrps( void ); Bool Fetch_updateGrps( void ); Bool Fetch_getReq_( void ); Bool Fetch_postArts( void ); /* Get new articles in group "grp", using fetch mode "mode". */ Bool Fetch_getNewArts( const char *grp, FetchMode mode ); #endif