From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83634 Path: news.gmane.org!not-for-mail From: Julien Cubizolles Newsgroups: gmane.emacs.gnus.general Subject: Re: nuke unread messages Date: Sat, 03 Aug 2013 08:54:28 +0200 Message-ID: <87iozn2riz.fsf@free.fr> References: <87zjz0fk1t.fsf@free.fr> <87siysskj1.fsf@free.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1375513358 19923 80.91.229.3 (3 Aug 2013 07:02:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2013 07:02:38 +0000 (UTC) Cc: ding@gnus.org To: Lars Magne Ingebrigtsen Original-X-From: ding-owner+M31890@lists.math.uh.edu Sat Aug 03 09:02:38 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V5VrI-0005Iu-D0 for ding-account@gmane.org; Sat, 03 Aug 2013 09:02:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1V5Vjn-00055c-Te; Sat, 03 Aug 2013 01:54:51 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1V5Vjl-00055J-AA for ding@lists.math.uh.edu; Sat, 03 Aug 2013 01:54:49 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1V5Vjg-0006S5-6q for ding@lists.math.uh.edu; Sat, 03 Aug 2013 01:54:48 -0500 Original-Received: from smtp3-g21.free.fr ([212.27.42.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1V5Vjd-0000s2-Vz; Sat, 03 Aug 2013 08:54:42 +0200 Original-Received: from hereafter (unknown [37.161.211.219]) by smtp3-g21.free.fr (Postfix) with ESMTP id 60D0BA624D; Sat, 3 Aug 2013 08:54:30 +0200 (CEST) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Fri, 02 Aug 2013 14:52:23 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83634 Archived-At: Lars Magne Ingebrigtsen writes: > Ah, I see. I've now made `gnus-group-delete-articles' accept a prefix > arg that will only delete "old" articles. > > I haven't actually tested the code, though. >"? It doesn't seem to work. I have gnus-agent-expire-days set to 30. On a given nnimap group in the *Group* buffer, running C-u M-x gnus-group-delete-articles offer to delete some articles. However, after having answered yes, the messages are still there. If I'm in the *Summary* for the same nnimap group, running the same function offer to delete 0 articles, as does evaluating (gnus-group-delete-articles "nnimap+free:test" 'oldp). Answering yes gives the following error: gnus-request-expire-articles: Wrong type argument: stringp, nil I had in mind an expiry method to achieve this but gnus-group-delete-articles has the advantage that you can run for just one shot. I guess I could add this function to the right hook to have it run on visiting each group marked with a new group parameter. What do you think=C2=A0? Julien.