comparison src/post.c @ 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 fed1334d766b
children 24d4cd032da5
comparison
equal deleted inserted replaced
190:47569cf4ad4a 191:28488e0e3630
1 /* 1 /*
2 post.c 2 post.c
3 3
4 $Id: post.c 300 2001-08-05 08:24:22Z bears $ 4 $Id: post.c 310 2001-10-20 13:23:46Z 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
97 Db_setXref( msgId, t ); 97 Db_setXref( msgId, t );
98 } 98 }
99 99
100 Cont_write(); 100 Cont_write();
101 Grp_setFirstLast( Cont_grp(), Cont_first(), Cont_last() ); 101 Grp_setFirstLast( Cont_grp(), Cont_first(), Cont_last() );
102 Grp_setLastPostTime( Cont_grp() );
102 return TRUE; 103 return TRUE;
103 } 104 }
104 105
105 static Bool 106 static Bool
106 checkPostableNewsgroup( void ) 107 checkPostableNewsgroup( void )