Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <simon@josefsson.org>
To: ding@gnus.org
Subject: deleting articles in nnimap
Date: Sat, 20 Aug 2011 21:52:08 +0200	[thread overview]
Message-ID: <87sjovq2s7.fsf@latte.josefsson.org> (raw)

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  <simon@josefsson.org>

	* 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)))



             reply	other threads:[~2011-08-20 19:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-20 19:52 Simon Josefsson [this message]
2011-08-21  3:36 ` Lars Magne Ingebrigtsen
2011-08-21 12:32   ` Steinar Bang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sjovq2s7.fsf@latte.josefsson.org \
    --to=simon@josefsson.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).