GNU bug report logs - #46533
27.1.91; (gnus-agent-expire) leaves the last article per group

Previous Next

Package: emacs;

Reported by: Teemu Likonen <tlikonen <at> iki.fi>

Date: Mon, 15 Feb 2021 13:46:01 UTC

Severity: normal

Found in version 27.1.91

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46533 in the body.
You can then email your comments to 46533 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#46533; Package emacs. (Mon, 15 Feb 2021 13:46:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Teemu Likonen <tlikonen <at> iki.fi>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 15 Feb 2021 13:46:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Teemu Likonen <tlikonen <at> iki.fi>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1.91; (gnus-agent-expire) leaves the last article per group
Date: Mon, 15 Feb 2021 15:45:07 +0200
[Message part 1 (text/plain, inline)]
Gnus mail and news client has "agent" feature for caching articles
locally. The local cache can be expired by command "M-x
gnus-agent-expire".

However, the expiry does not always expire all cached articles. It seems
that the expiry mechanism leaves one article file if there are not any
newer articles in the same group.

For example, currently in my system all article files older than
2021-02-08 have been expired. Yet one older file remains:

    $ cd "$HOME/News/agent/nntp"
    $ find . -type f -regex '.*/[0-9]+$' -print0 | \
        xargs -0r ls -gGltu | tail -n3

    -rw-r--r-- 1   1104 2021-02-08 08:10:18 ./september/alt/os/linux/69718
    -rw-r--r-- 1   5350 2021-02-08 08:10:04 ./gmane/gmane/emacs/gnus/user/19400
    -rw-r--r-- 1   5394 2021-02-05 19:41:11 ./gmane/gmane/ietf/openpgp/9871

There is one file with access time ("ls -ltu") 2021-02-05. It should
have been removed already but it is the last article in its group so it
remains. I think I have seen such articles expire after new article
arrives in the same group.

There is not any easy recipe for reproducing the behaviour. You have to
set up Gnus agent and make Gnus cache some articles. Here's a start:

    ;; Expire everything before today.
    (setq gnus-agent-expire-days 0)

    ;; Fetch all selected articles.
    (add-hook 'gnus-select-article-hook 'gnus-agent-fetch-selected-article)

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46533; Package emacs. (Tue, 16 Feb 2021 12:24:01 GMT) Full text and rfc822 format available.

Message #8 received at 46533 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Teemu Likonen <tlikonen <at> iki.fi>
Cc: 46533 <at> debbugs.gnu.org
Subject: Re: bug#46533: 27.1.91; (gnus-agent-expire) leaves the last article
 per group
Date: Tue, 16 Feb 2021 13:23:17 +0100
Teemu Likonen <tlikonen <at> iki.fi> writes:

> There is one file with access time ("ls -ltu") 2021-02-05. It should
> have been removed already but it is the last article in its group so it
> remains.

I haven't tried to debug this, but this does sound familiar.  I seem to
vaguely remember that the Agent has to been the highest-numbered article
for accounting reasons?  So expiry doesn't touch the newest article.

I may be totally misremembering, though.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46533; Package emacs. (Tue, 16 Feb 2021 22:08:01 GMT) Full text and rfc822 format available.

Message #11 received at 46533 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Teemu Likonen <tlikonen <at> iki.fi>
Cc: 46533 <at> debbugs.gnu.org
Subject: Re: bug#46533: 27.1.91; (gnus-agent-expire) leaves the last article
 per group
Date: Tue, 16 Feb 2021 23:07:15 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I haven't tried to debug this, but this does sound familiar.  I seem to
> vaguely remember that the Agent has to been the highest-numbered article
> for accounting reasons?  So expiry doesn't touch the newest article.

Yup, I remembered correctly.  I've now documented this quirk in the Gnus
manual.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 46533 <at> debbugs.gnu.org and Teemu Likonen <tlikonen <at> iki.fi> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 16 Feb 2021 22:08:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 17 Mar 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.