[leafnode-list] Re: How to disable expiry for certain groups?

Matthias Andree matthias.andree at gmx.de
Sun Jan 9 14:56:39 CET 2005


Matthias Andree <matthias.andree at gmx.de> writes:

> Raymond Scholz schrieb am 2005-01-08:
>
>> >               "groupexpire" makes it possible to adjust expiry times for indi-
>> >               vidual groups. Expiry times are given in days,  negative  values
>> >               prevent  expiry for the given groups. 
>> 
>> 
>> Which did prove wrong for me using 2.0.0.alpha20050103a.  The groups
>> are expired immediately.
>
> How can this happen? texpire.c lines 805f.:

Turns out the configuration parser does not pass on this "do not expire
this group" functionality.

Please let me know if this works for you:

Sun Jan  9 14:52:20 CET 2005  Matthias Andree <matthias.andree at gmx.de>
  * fix groupexpire with negative value to "no expire"
diff -rN -u leafnode-2-darcs-old/NEWS leafnode-2-darcs-new/NEWS
--- leafnode-2-darcs-old/NEWS	2005-01-09 14:56:19.000000000 +0100
+++ leafnode-2-darcs-new/NEWS	2005-01-09 14:56:19.000000000 +0100
@@ -4,6 +4,8 @@
 |
 Changes since 20050105a:
 - Cleanup: Only use top-level Makefile.am, drop recursion.
+- Bugfix: Make groupexpire = pattern -1 actually work. Bug reported by
+  Raymond Scholz
 
 20050105a: Changes since 20050104a:
 - Bugfix: delete_article also removes articles from in.coming directory
diff -rN -u leafnode-2-darcs-old/configutil.c leafnode-2-darcs-new/configutil.c
--- leafnode-2-darcs-old/configutil.c	2005-01-09 14:56:19.000000000 +0100
+++ leafnode-2-darcs-new/configutil.c	2005-01-09 14:48:52.000000000 +0100
@@ -364,7 +364,7 @@
 				if (ent) {
 				    ent->group =
 					critstrdup(value, "readconfig");
-				    ent->xtime = i;
+				    ent->xtime = days < 0 ? -1 : i;
 				    ent->next = prev;
 				    prev = ent;
 				    if (debugmode & DEBUG_CONFIG)



-- 
Matthias Andree



More information about the leafnode-list mailing list