Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] Broken mail expiry in nnmaildir backend
@ 2012-05-27  2:18 Toke Høiland-Jørgensen
  2012-06-10 19:54 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Toke Høiland-Jørgensen @ 2012-05-27  2:18 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

Hi

I was experiencing trouble expiring mail messages using the nnmaildir
backend. I finally tracked it down to integer/number confusion. The
attached patch against the latest git head fixes expiry on nnmaildir for
me.

I'm hoping this is the right place to post this. :)

-Toke

-- 
Toke Høiland-Jørgensen
toke@toke.dk


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Fix for nnmaildir expiry --]
[-- Type: text/x-patch, Size: 454 bytes --]

diff --git a/lisp/nnmaildir.el b/lisp/nnmaildir.el
index bbace7c..7139a52 100644
--- a/lisp/nnmaildir.el
+++ b/lisp/nnmaildir.el
@@ -1461,7 +1461,7 @@ by nnmaildir-request-article.")
 	(if (eq time 'immediate)
 	    (setq time 0)
 	  (if (numberp time)
-	      (setq time (* time 86400)))))
+	      (setq time (round (* time 86400))))))
       (when no-force
 	(unless (integerp time) ;; handle 'never
 	  (throw 'return (gnus-uncompress-range ranges)))

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

* Re: [PATCH] Broken mail expiry in nnmaildir backend
  2012-05-27  2:18 [PATCH] Broken mail expiry in nnmaildir backend Toke Høiland-Jørgensen
@ 2012-06-10 19:54 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-06-10 19:54 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen; +Cc: ding

Toke Høiland-Jørgensen <toke@toke.dk> writes:

> I was experiencing trouble expiring mail messages using the nnmaildir
> backend. I finally tracked it down to integer/number confusion. The
> attached patch against the latest git head fixes expiry on nnmaildir for
> me.
>
> I'm hoping this is the right place to post this. :)

Thanks; applied.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



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

end of thread, other threads:[~2012-06-10 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-27  2:18 [PATCH] Broken mail expiry in nnmaildir backend Toke Høiland-Jørgensen
2012-06-10 19:54 ` Lars Magne Ingebrigtsen

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