From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61600 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.w3m,gmane.emacs.gnus.general Subject: [emacs-w3m:08474] Re: nnrss should borrow nnshibmun's RSS date processor...or something Date: Thu, 22 Dec 2005 14:27:05 +0900 Organization: Emacsen advocacy group Message-ID: References: <87y82dokdt.fsf@stone.tss.usg.edu> Reply-To: emacs-w3m@namazu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135229247 6861 80.91.229.2 (22 Dec 2005 05:27:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2005 05:27:27 +0000 (UTC) Cc: emacs-w3m@namazu.org Original-X-From: emacs-w3m-admin@namazu.org Thu Dec 22 06:27:24 2005 Return-path: Envelope-to: emacs-w3m@deer.gmane.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EpIyz-0007v9-9y for emacs-w3m@deer.gmane.org; Thu, 22 Dec 2005 06:27:17 +0100 Original-Received: from vaj.namazu.org ([61.215.208.42]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EpIyy-0001ho-00 for ; Thu, 22 Dec 2005 06:27:17 +0100 Original-Received: from vaj.namazu.org (localhost [127.0.0.1]) by vaj.namazu.org (Postfix) with ESMTP id 18019201BB; Thu, 22 Dec 2005 14:27:13 +0900 (JST) Original-Received: from washington.hostforweb.net (washington.hostforweb.net [66.225.201.13]) by vaj.namazu.org (Postfix) with ESMTP id 91ACA201B5 for ; Thu, 22 Dec 2005 14:27:12 +0900 (JST) Original-Received: from localhost ([127.0.0.1]:56831) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1EpJ0b-0003Ad-DQ; Wed, 21 Dec 2005 23:28:57 -0600 Original-To: ding@gnus.org X-ML-Name: emacs-w3m X-Mail-Count: 08474 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (anyone can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address emacs-w3m-ctl@namazu.org; help= User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) 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&( Cancel-Lock: sha1:GjHURtal5eO9Fx0LAs41GuTMpVo= X-Hashcash: 1:20:051222:ding@gnus.org::BM9uPfJYmFTCKa5w:00000Li4 X-Hashcash: 1:20:051222:emacs-w3m@namazu.org::MAGmtehAKyEpH+Bn:000000000000000000000000000000000000000008dPo 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 - namazu.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-Flag: No X-Spam-Probability: 0.000000 Precedence: bulk Original-Lines: 35 List-Id: emacs-w3m.namazu.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: Xref: news.gmane.org gmane.emacs.w3m:5835 gmane.emacs.gnus.general:61600 Archived-At: >>>>> In [emacs-w3m : No.08473] Mark Plaksin wrote: > Some RSS feeds provide the date in ISO 8601 date format. sb-rss.el from > nnshimbun converts from ISO 8601 to a format that Gnus can handle. nnrss > does no conversion so Gnus ends up saying the date is the start of the Unix > epoch. Gnus will be able to handle ISO 8601 date if we replace every `parse-time-string' that Gnus uses with `date-to-time' which uses timezone.el. However, it is effective only in Emacs 22, because timezone.el distributed with Emacs 21 doesn't understand ISO 8601 date. For instance: (timezone-parse-date "2005-12-22T13:14:03+09:00") ;; Emacs 22.0.50 => ["2005" "12" "22" "13:14:03" nil] ;; Emacs 21.4 => ["0" "0" "0" "0" nil] > It would be nice if the conversion function from sb-rss.el were put into > some library that nnrss could easily call. It's not clear to me where the > best place for that would be. I think it should be done in nnrss.el since parse-time.el and time-date.el belong to Emacs, not Gnus. > For the moment, I hacked my copy of nnrss.el to call an un-shimbuned > version of shimbun-rss-process-date. It seems to have to be used before using `message-make-date' in the `nnrss-check-group' function. Could you present it? BTW, why do you prefer RFC822 date rather than ISO 8601 date? If it is for the bugfix, we should apply it to both the Gnus trunk and the v5-10 branch.