Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: expiry problems?
Date: Sat, 10 Nov 2001 12:11:11 +0100	[thread overview]
Message-ID: <iluitcig9tc.fsf@dhcp128.extundo.com> (raw)
In-Reply-To: <87wv0z35yw.fsf@mclinux.com> (Josh Huber's message of "Fri, 09 Nov 2001 18:00:23 -0500")

Josh Huber <huber@alum.wpi.edu> writes:

> This is fine, except for the fact that the nnmail-expired-article-p
> function returns nil for VERY old articles.
>
> because of this piece of code:
>
> (time-less-p days (time-since time))
>
> time-since returns a negative number for articles before 1970...
>
> touch -d "Jan 1 1940" <first article in nnml directory>
>
> and your articles will never be expired in that group.
>
> My clock must have been set wrong while those messages were created,
> and they're in each group I have keeping everything from being
> expired.
>
> anyway, here is my fix, should I commit?  I'm asking since it really
> seems like a hack.  The real fix is probably to time-since...

I don't grok what is happening, the functions seems to handle negative
dates for me:

(time-less-p (days-to-time 7)
             (time-since (date-to-time "Jan 1 00:00:00 1940")))
t

Can you provide some more info on which values you see?




  reply	other threads:[~2001-11-10 11:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-09 14:32 Josh Huber
2001-11-09 15:53 ` Harry Putnam
2001-11-09 16:56 ` Matt Armstrong
2001-11-09 18:09   ` Josh Huber
2001-11-09 19:17     ` Matt Armstrong
2001-11-09 23:00       ` Josh Huber
2001-11-10 11:11         ` Simon Josefsson [this message]
2001-11-10 17:52           ` Josh Huber
2001-11-10 19:04             ` Simon Josefsson
2001-11-21  6:32               ` Stephen J. Turnbull

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=iluitcig9tc.fsf@dhcp128.extundo.com \
    --to=jas@extundo.com \
    /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).