From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.bugs Subject: bug#46533: 27.1.91; (gnus-agent-expire) leaves the last article per group Date: Mon, 15 Feb 2021 15:45:07 +0200 Message-ID: <87v9atmom4.fsf@iki.fi> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="391"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.31.1+1~gc5504cb (https://notmuchmail.org) Emacs/27.1.91 (x86_64-pc-linux-gnu) To: 46533@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 15 14:50:01 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBeGG-000AVA-5S for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Feb 2021 14:50:00 +0100 Original-Received: from localhost ([::1]:36796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBeGE-00037X-V4 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Feb 2021 08:49:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBeCR-0000sQ-Q3 for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2021 08:46:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBeCQ-00016O-3L for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2021 08:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lBeCQ-0000g8-2h for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2021 08:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Teemu Likonen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Feb 2021 13:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46533 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16133967322565 (code B ref -1); Mon, 15 Feb 2021 13:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Feb 2021 13:45:32 +0000 Original-Received: from localhost ([127.0.0.1]:37661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBeBv-0000fI-SN for submit@debbugs.gnu.org; Mon, 15 Feb 2021 08:45:32 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:32860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBeBt-0000f8-9h for submit@debbugs.gnu.org; Mon, 15 Feb 2021 08:45:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBeBs-0000X7-7m for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2021 08:45:28 -0500 Original-Received: from lahtoruutu.iki.fi ([185.185.170.37]:56738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBeBp-0000h5-JK for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2021 08:45:27 -0500 Original-Received: from mithlond (mobile-access-bceeaf-8.dhcp.inet.fi [188.238.175.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: tlikonen) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 45F831B00046 for ; Mon, 15 Feb 2021 15:45:14 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1613396714; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=VXPdUno8CDX66Y4h6td3P52C8MHH2b1dmp6x2bazeIM=; b=RRVJtuJ6c+7hCyvPpWLloWZAb3SWwu4MfjN1XWb4lXXGGBjZIXl2+uYeDRQ5h+D3fsaCHx pKQxjZmX/dvKP30TkLJSeENmBaGiSyVWYV0l5wZe5zD2zPeGI+xn9GCBmsjaJ+nC1mRjcv 7pK4h1RqEr6dlAuFbYg3lhVmTiMDrjUY4rDj6itSV/oz/YpznEFbRUJTYXhTFuelGGpHP5 rgg7CMGigmpkTZWlo/MoOjjEuQCMSk9sPws5Jjf1IpQNxbjcKkZgQqex3y3kPSW+H/qtmh yhEcbTeOY9tmf44R7a0cdaVFFI2qGbv+mnpvXktYVUxyv7Zv0wXVzqnVD7UOtw== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1613396714; a=rsa-sha256; cv=none; b=kd7N7osQAcXQ6Na1uYaaHKxzPnGqBbjne6dMfnzw9pKOWx2MhkOuE2q2hxU/aPLOxvRz7M g/FJRZFfyqUQCyUKpIgzPsSB6sP8rSv7I/D8Q3tdmj7gNz0pdmfL5/dN/Ah+WlWzBnz0Hz MuJeBQg9FgHb29MT2zBxx7na/XcL2xKZ4ZeBzrigUz/GjtHH0ifRhf3up+OSUQ9rhv1qFZ xK7ZcQ6oOrxJXG8C2MFdjDAEFeEaJf3NYSZxPm78qUE39Agtc16UR44SVj7b5YLnDDToHI YC47p1SO4tNIW7A4SAVKpxTwYPAzOE91cWCxyr9ZhAEve3YSPEXxxWPEwmuFag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1613396714; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=VXPdUno8CDX66Y4h6td3P52C8MHH2b1dmp6x2bazeIM=; b=nVvOtJNs038qa7XtyT5heutiR1NZ9JAVhWoHk2ig6jj8a4gf7bH7LmP+D4eLiUeaHtQO9w sP6xZGY2rsbpM9skmhH6mrVtfY1HSI4oD0CRMCSxcyGH9yYpkBDa0KgG5oK0Co2gL9NWBE L7wkEVASA7reAjmlM73mwSY0MIdekHum9ZXhzeFJYNqoshJC8PDPr4crsuAkPHa3PrGGsK Ef5nGGvlleCGnjpqh34XlPdDXoWu6O+fcgLj3KmwTmYRPLdKK6jyo88lFQRhfwl5ZWUSFo NVw0A395q70ArTabZ8iNMbA/7oguVAjUPwkZ8SiCKVH33qH6L6mQ35k8r+H0Vw== Received-SPF: pass client-ip=185.185.170.37; envelope-from=tlikonen@iki.fi; helo=lahtoruutu.iki.fi X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200060 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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/1= 9400 -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) =2D-=20 /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/ // OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIYEARYIAC4WIQTJW2wqtelxC1gHdbitnXWr7pTCcwUCYCp64xAcdGxpa29uZW5A aWtpLmZpAAoJEK2ddavulMJzceUA/26oN+w52lkMkSRnUKQiv02IDFwAGYH655Hs ZPvP3qAYAP4v//kVJtOBRwyeVbZyTsg194VvjW9RWhUK2rncQCdmBQ== =/3gF -----END PGP SIGNATURE----- --=-=-=--