From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61916 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Total expiry not working -- is clock skew the problem? Date: Thu, 09 Feb 2006 10:11:42 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139447711 20689 80.91.229.2 (9 Feb 2006 01:15:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2006 01:15:11 +0000 (UTC) Original-X-From: ding-owner+m10445@lists.math.uh.edu Thu Feb 09 02:15:10 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F70Oe-00069Y-Pn for ding-account@gmane.org; Thu, 09 Feb 2006 02:14:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1F70Oa-0002Ht-00; Wed, 08 Feb 2006 19:14:52 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1F70Lf-0002Ho-00 for ding@lists.math.uh.edu; Wed, 08 Feb 2006 19:11:51 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1F70Lb-0007MK-LA for ding@lists.math.uh.edu; Wed, 08 Feb 2006 19:11:51 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1F70La-0003PT-00 for ; Thu, 09 Feb 2006 02:11:46 +0100 Original-Received: from [205.234.185.198] (port=49796 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1F70NE-0007LW-3v for ding@gnus.org; Wed, 08 Feb 2006 19:13:28 -0600 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:E6eS5tp6GODmAdNmdknt0NoC53M= X-Hashcash: 1:20:060209:ding@gnus.org::yaec4+4U2SW93d5i:00000RKn X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61916 Archived-At: >>>>> In Ted Stern wrote: > On 7 Feb 2006 at 19:37 UTC-0800, Katsumi Yamaoka wrote: >> (progn >> (setenv "TZ" "PST8PDT") ;; -0800 >> (/ (time-to-seconds (time-since (current-time-string))) 3600)) >> => 8.000075615555556 > Aha. This could be the problem. There is a problem with time-since > input in my Emacs. > (progn > (setenv "TZ" "PST8PDT") ;; -0800 > (time-since (current-time-string))) > ,----[ lisp debugger output ] >| Debugger entered--Lisp error: (wrong-type-argument listp "Wed Feb 8 12:45:24 2006") >| time-since("Wed Feb 8 12:45:24 2006") >| (progn (setenv "TZ" "PST8PDT") (time-since (current-time-string))) That's exactly the cause of your problem. Nnfolder will never expire articles if that function doesn't work. You seem to use `time-since' defined in some Lisp module other than time-date.el. For example, it is make-regexp.el: http://cvs.sourceforge.net/viewcvs.py/tei/tei-emacs/tei-emacs/Attic/make-regexp.el?rev=1.2 I could reproduce the same error with it. If you're using such one, you can replace it with another one which doesn't contain time-* functions. For instance: https://svn.r-project.org/ESS/trunk/lisp/make-regexp.el Other possible solutions include: 1. Don't use it. 2. Load time-date.el explicitly. 3. Putting the following form in your ~/.emacs file (or ~/.gnus.el file) might do the trick. (defadvice time-since (around reload-time-date_el activate) "Reload time-date.el if this function seems to have been overridden." (condition-case nil ad-do-it (error (load "time-date") ad-do-it))) >> BTW, expiring might be executed in your machine eight hours earlier >> than the time specified with expiry-wait. It is because the >> timestamp in the X-Gnus-Article-Number header is made by the >> current-time-string function and doesn't have a timezone info. For >> instance: I've modified nnfolder.el so as to use `message-make-date' which generates a timezone info rather than `current-time-string' when generating X-Gnus-Article-Number header.