From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/40184 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: expiry problems? Date: Sat, 10 Nov 2001 12:11:11 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87668kggle.fsf@mclinux.com> <87adxvrihi.fsf@squeaker.lickey.com> <87itcjg6jy.fsf@mclinux.com> <874ro369fj.fsf@squeaker.lickey.com> <87wv0z35yw.fsf@mclinux.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035175773 31953 80.91.224.250 (21 Oct 2002 04:49:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:49:33 +0000 (UTC) Return-Path: Original-Received: (qmail 11677 invoked from network); 10 Nov 2001 11:15:31 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 10 Nov 2001 11:15:31 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 162W40-0007bN-00; Sat, 10 Nov 2001 05:12:40 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 10 Nov 2001 05:12:21 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id FAA09132 for ; Sat, 10 Nov 2001 05:12:10 -0600 (CST) Original-Received: (qmail 11589 invoked by alias); 10 Nov 2001 11:12:18 -0000 Original-Received: (qmail 11584 invoked from network); 10 Nov 2001 11:12:18 -0000 Original-Received: from unknown (HELO dolk.extundo.com) (195.42.214.242) by gnus.org with SMTP; 10 Nov 2001 11:12:18 -0000 Original-Received: from dhcp128.extundo.com (slipsten.extundo.com [195.42.214.241]) (authenticated bits=0) by dolk.extundo.com (8.12.1/8.12.1) with ESMTP id fAABBkdi013576 for ; Sat, 10 Nov 2001 12:11:46 +0100 Original-To: ding@gnus.org In-Reply-To: <87wv0z35yw.fsf@mclinux.com> (Josh Huber's message of "Fri, 09 Nov 2001 18:00:23 -0500") Mail-Copies-To: nobody Original-Lines: 30 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:40184 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:40184 Josh Huber 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" > > 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?