From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81856 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] Broken mail expiry in nnmaildir backend Date: Sun, 27 May 2012 14:18:37 +1200 Message-ID: <87r4u61i4i.fsf@toke.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1338088591 11130 80.91.229.3 (27 May 2012 03:16:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 May 2012 03:16:31 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30126@lists.math.uh.edu Sun May 27 05:16:30 2012 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 1SYTy0-0005Gt-6z for ding-account@gmane.org; Sun, 27 May 2012 05:16:28 +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 1SYTwm-0007Ml-5r; Sat, 26 May 2012 22:15:12 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SYTwk-0007MY-C1 for ding@lists.math.uh.edu; Sat, 26 May 2012 22:15:10 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SYTwi-0001JE-IO for ding@lists.math.uh.edu; Sat, 26 May 2012 22:15:09 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SYTwg-00061x-He for ding@gnus.org; Sun, 27 May 2012 05:15:06 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SYTwe-0002yi-Hz for ding@gnus.org; Sun, 27 May 2012 05:15:04 +0200 Original-Received: from wireless-nat-8.auckland.ac.nz ([130.216.30.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 May 2012 05:15:04 +0200 Original-Received: from toke by wireless-nat-8.auckland.ac.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 May 2012 05:15:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: wireless-nat-8.auckland.ac.nz User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.0.96 (gnu/linux) Cancel-Lock: sha1:ArSqb6Ka7S4aQtSv4i4BF+gZcTc= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81856 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=maildir-expiry.patch Content-Description: Fix for nnmaildir expiry 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))) --=-=-=--