bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#46533: 27.1.91; (gnus-agent-expire) leaves the last article per grou


From: Teemu Likonen
Subject: bug#46533: 27.1.91; (gnus-agent-expire) leaves the last article per group
Date: Mon, 15 Feb 2021 15:45:07 +0200
User-agent: Notmuch/0.31.1+1~gc5504cb (https://notmuchmail.org) Emacs/27.1.91 (x86_64-pc-linux-gnu)

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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]