Mercurial > noffle
comparison src/group.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 | 3c71e28c8eef |
children | 1ad2602f57db |
comparison
equal
deleted
inserted
replaced
190:47569cf4ad4a | 191:28488e0e3630 |
---|---|
1 /* | 1 /* |
2 group.h | 2 group.h |
3 | 3 |
4 Groups database | 4 Groups database |
5 | 5 |
6 $Id: group.h 183 2000-07-25 12:14:54Z bears $ | 6 $Id: group.h 310 2001-10-20 13:23:46Z bears $ |
7 */ | 7 */ |
8 | 8 |
9 #ifndef GRP_H | 9 #ifndef GRP_H |
10 #define GRP_H | 10 #define GRP_H |
11 | 11 |
87 Grp_created( const char *name ); | 87 Grp_created( const char *name ); |
88 | 88 |
89 char | 89 char |
90 Grp_postAllow( const char *name ); | 90 Grp_postAllow( const char *name ); |
91 | 91 |
92 time_t | |
93 Grp_lastPostTime( const char *name ); | |
94 | |
92 /* Replace group's description (only if value != ""). */ | 95 /* Replace group's description (only if value != ""). */ |
93 void | 96 void |
94 Grp_setDsc( const char *name, const char *value ); | 97 Grp_setDsc( const char *name, const char *value ); |
95 | 98 |
96 void | 99 void |
101 | 104 |
102 void | 105 void |
103 Grp_setRmtNext( const char *name, int value ); | 106 Grp_setRmtNext( const char *name, int value ); |
104 | 107 |
105 void | 108 void |
106 Grp_setLastAccess( const char *name, int value ); | 109 Grp_setLastAccess( const char *name ); |
107 | 110 |
108 void | 111 void |
109 Grp_setFirstLast( const char *name, int first, int last ); | 112 Grp_setFirstLast( const char *name, int first, int last ); |
110 | 113 |
111 void | 114 void |
112 Grp_setPostAllow( const char *name, char postAllow ); | 115 Grp_setPostAllow( const char *name, char postAllow ); |
116 | |
117 void | |
118 Grp_setLastPostTime( const char *name ); | |
113 | 119 |
114 /* Begin iterating trough the names of all groups. Store name of first | 120 /* Begin iterating trough the names of all groups. Store name of first |
115 group (or NULL if there aren't any) in name. Returns whether there are | 121 group (or NULL if there aren't any) in name. Returns whether there are |
116 any groups. */ | 122 any groups. */ |
117 Bool | 123 Bool |