Gnus development mailing list
 help / color / mirror / Atom feed
* deleting articles in nnimap
@ 2011-08-20 19:52 Simon Josefsson
  2011-08-21  3:36 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Josefsson @ 2011-08-20 19:52 UTC (permalink / raw)
  To: ding

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-21 12:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-20 19:52 deleting articles in nnimap Simon Josefsson
2011-08-21  3:36 ` Lars Magne Ingebrigtsen
2011-08-21 12:32   ` Steinar Bang

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