[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [leafnode-list] Groups Not Being Removed



Okay, before I apply the patch from the other e-mail, I have a question.  I
looked through my dormant.groups directory and those groups are not listed.
But, I noticed that the groups do exist in interesting.groups.  In my config
file I have timeout_short set at 2 and timeout_long is set at 7.  Those
groups have not had any messages in them for quite sometime.  How come they
are still in my interesting.groups directory?  I just went and looked how I
was calling Fetchnews.  And, I do not use the -n switch, so that is not the
problem.  Those groups are not in my subscribed groups in my newsreader, so
they should not be getting hit.  How can I look and see what dates or mtime
or atime (not sure what those are, I have just heard them used) are for
those groups in question?

Thanks,
Jeff

p.s. I was not aware of the 12/03 version.  Did I miss the announcement
about that version?

 > -----Original Message-----
> From: Matthias Andree [mailto:matthias.andree@xxxxxx]
> Sent: Tuesday, December 16, 2003 3:06 PM
> To: Jeff Grossman
> Cc: leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [leafnode-list] Groups Not Being Removed
> 
> On Tue, 16 Dec 2003, Jeff Grossman wrote:
> 
> > I am running the 1129a build of 2.0.  I continually see the following
groups
> > in my texpire output even though there are no messages left.  Aren't the
> > groups supposed to be automatically removed?
> >
> > public.mozdev.communicator: 0 articles deleted, 0 kept
> > public.mozdev.chimera: 0 articles deleted, 0 kept
> > tin.dev: 0 articles deleted, 0 kept
> > tin.users: 0 articles deleted, 0 kept
> > tin.bugs: 0 articles deleted, 0 kept
> > tin.announce: 0 articles deleted, 0 kept
> 
> Looking at my current CVS code which hasn't changed in the past three
> weeks in that area, texpire will keep the groups (even with empty
> directories) when they are marked dormant (/etc/leafnode/dormant.groups
> contains tin.dev) or interesting
> (/var/spool/news/intersting.groups/tin.dev exists).
> 
> Can you confirm if that is the case?
> 
> Does the following patch clarify the situation when you run texpire -vvv
> again? (works against your version and the later 1203a snapshot)
> 
> Index: texpire.c
> ===============================================================
> ====
> RCS file: /var/CVS/leafnode-2/texpire.c,v
> retrieving revision 1.41
> diff -u -r1.41 texpire.c
> --- texpire.c	3 Nov 2003 20:05:23 -0000	1.41
> +++ texpire.c	16 Dec 2003 22:49:57 -0000
> @@ -134,7 +134,7 @@
>  	if (errno != ENOENT)
>  	    ln_log(LNLOG_SERR, LNLOG_CGROUP, "unlink %s/%s: %m",
> logprefix, file);
>      } else {
> -	ln_log(LNLOG_SDEBUG, LNLOG_CGROUP, "unlinked %s/%s", logprefix,
> file);
> +	ln_log(LNLOG_SINFO, LNLOG_CGROUP, "unlinked %s/%s", logprefix,
> file);
>      }
>  }
> 
> @@ -870,8 +870,11 @@
>  		    return;
>  		}
>  	    }
> +	} else {
> +	    ln_log(LNLOG_SINFO, LNLOG_CGROUP, "not removing %s because it
> is interesting or dormant.", n);
>  	}
>      }
> +
>      /* Once we're done and there's something left we have to update the
>       * .overview file. Otherwise unsubscribed groups will never be
>       * deleted.

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list