From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79684 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: deleting articles in nnimap Date: Sat, 20 Aug 2011 21:52:08 +0200 Message-ID: <87sjovq2s7.fsf@latte.josefsson.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313870033 3764 80.91.229.12 (20 Aug 2011 19:53:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 20 Aug 2011 19:53:53 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27978@lists.math.uh.edu Sat Aug 20 21:53:49 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qurc4-00068T-16 for ding-account@gmane.org; Sat, 20 Aug 2011 21:53:48 +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 1Quraw-0008QV-AE; Sat, 20 Aug 2011 14:52:38 -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 1Quras-0008QE-PD for ding@lists.math.uh.edu; Sat, 20 Aug 2011 14:52:34 -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 1Qurag-0007Xt-0I for ding@lists.math.uh.edu; Sat, 20 Aug 2011 14:52:32 -0500 Original-Received: from yxa-v.extundo.com ([213.115.69.139]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Qurac-0005dv-VL for ding@gnus.org; Sat, 20 Aug 2011 21:52:19 +0200 Original-Received: from latte.josefsson.org (c-7393e255.46-3-64736c14.cust.bredbandsbolaget.se [85.226.147.115]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p7KJqDoA020690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sat, 20 Aug 2011 21:52:15 +0200 X-Hashcash: 1:22:110820:ding@gnus.org::TWNkIXW5+43URxca:URqi OpenPGP: id=B565716F; url=http://josefsson.org/key.txt Mail-Copies-To: nobody User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_96_XX, RCVD_IN_PBL,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com X-Virus-Scanned: clamav-milter 0.97.2 at yxa-v X-Virus-Status: Clean X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79684 Archived-At: Gnus nicely saves a copy of each nnimap article I read in my ~/News/agent/nnimap/foo/INBOX.bar/ folder, however removing a message only seems to delete it on the server. Shouldn't it remove the cached article locally, too? I delete with B DEL yes RET. Further, the messages shown when deleting a message are: Expiring articles in nnimap+yxa:INBOX.2011 gnus-agent-expire: Loading overview... Done gnus-agent-expire: Sorting entries... Done gnus-agent-expire: Merging entries... Done gnus-agent-expire: nnimap+yxa:INBOX.2011:11700: NOV entry removed Expiry recovered 1 NOV entries, deleted 0 files, and freed 751.000000 B. The "deleted 0 files" indicates it CAN delete files, right? So maybe there is a bug rather than missing functionality. Also, the amount of precision in the format string output seems a bit excessive. How about simple patch below? /Simon 2011-08-20 Simon Josefsson * gnus-agent.el (gnus-agent-expire-done-message): Use %.f as format specified to reduce precision. diff --git a/lisp/gnus-agent.el b/lisp/gnus-agent.el index 424c55c..2622211 100644 --- a/lisp/gnus-agent.el +++ b/lisp/gnus-agent.el @@ -3560,7 +3560,7 @@ articles in every agentized group? ")) units (cdr units))) (format "Expiry recovered %d NOV entries, deleted %d files,\ - and freed %f %s." + and freed %.f %s." (nth 0 stats) (nth 1 stats) size (car units)))