From: "Toke Høiland-Jørgensen" <toke@toke.dk>
To: ding@gnus.org
Subject: [PATCH] Broken mail expiry in nnmaildir backend
Date: Sun, 27 May 2012 14:18:37 +1200 [thread overview]
Message-ID: <87r4u61i4i.fsf@toke.dk> (raw)
[-- 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)))
next reply other threads:[~2012-05-27 2:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-27 2:18 Toke Høiland-Jørgensen [this message]
2012-06-10 19:54 ` Lars Magne Ingebrigtsen
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=87r4u61i4i.fsf@toke.dk \
--to=toke@toke.dk \
--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).