From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61625 Path: news.gmane.org!not-for-mail From: Mark Plaksin Newsgroups: gmane.emacs.w3m,gmane.emacs.gnus.general Subject: [emacs-w3m:08486] Re: nnrss should borrow nnshibmun's RSS date processor...or something Date: Tue, 03 Jan 2006 21:50:47 -0500 Message-ID: <87psn8aepk.fsf@stone.tss.usg.edu> References: <87y82dokdt.fsf@stone.tss.usg.edu> <8764p2g0wc.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 1136343147 25018 80.91.229.2 (4 Jan 2006 02:52:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Jan 2006 02:52:27 +0000 (UTC) Cc: ding@gnus.org Original-X-From: emacs-w3m-admin@namazu.org Wed Jan 04 03:52:25 2006 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 1Etykd-000167-Hg for emacs-w3m@deer.gmane.org; Wed, 04 Jan 2006 03:51:49 +0100 Original-Received: from vaj.namazu.org ([61.215.208.42]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Etykc-000319-00 for ; Wed, 04 Jan 2006 03:51:47 +0100 Original-Received: from vaj.namazu.org (localhost [127.0.0.1]) by vaj.namazu.org (Postfix) with ESMTP id E0D4D20165; Wed, 4 Jan 2006 11:51:44 +0900 (JST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by vaj.namazu.org (Postfix) with ESMTP id D4F532013A for ; Wed, 4 Jan 2006 11:51:43 +0900 (JST) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Etyk9-00010M-Kh for emacs-w3m@namazu.org; Wed, 04 Jan 2006 03:51:18 +0100 Original-Received: from stone.tss.usg.edu ([168.24.82.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jan 2006 03:51:17 +0100 Original-Received: from happy by stone.tss.usg.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jan 2006 03:51:17 +0100 Original-Sender: news Original-To: emacs-w3m@namazu.org X-ML-Name: emacs-w3m X-Mail-Count: 08486 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, please contact emacs-w3m-admin@namazu.org; User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0 (gnu/linux) X-Injected-Via-Gmane: http://gmane.org/ Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: stone.tss.usg.edu Cancel-Lock: sha1:RSGaY1bQ9zENTzpBB7hxWmrGG8Y= X-Spam-Flag: No X-Spam-Probability: 0.000000 Precedence: bulk Original-Lines: 58 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:5847 gmane.emacs.gnus.general:61625 Archived-At: Katsumi Yamaoka writes: > I think the best way at the present is yours, i.e., to make > nnrss always provide RFC822 date. However, I still don't know > the reason why we should not use ISO 8601 date in nnrss > articles. Though we might not be getting used to seeing it in > our eyes, I don't think that is so serious. My original problem was that Gnus showed some RSS articles with a date of midnight Jan 1 1970. I found the cause to be dc:date being in ISO 8601 format. At that point I assumed Gnus couldn't handle ISO 8601 dates at all. I saw that sb-rss.el handled them and thought that was a good place to steal code from. This feed has ISO 8601 dates: http://del.icio.us/rss/popular/ Does it give incorrect dates for you too? >> If Gnus switches to date-to-time, then no change will be needed in nnrss, >> yes? > > It will make several date-oriented features of Gnus, e.g., > sorting, expiration, etc., work with ISO 8601 date. However, > I'm not sure whether all those features actually work and are > actually used. I can only say with certainty that they will > work with RFC822 date. Gotcha. >> I copied shimbun-rss-process-date, changed the first line from this: > >> (luna-define-method shimbun-rss-process-date ((shimbun shimbun-rss) date) > >> to this: > >> (defun map-shimbun-rss-date (date) > >> and then patched nnrss.el with the attached patch. > > Thanks. It looks good to me, and I seem to be able to rewrite > it in nnrss.el if we cannot use the shimbun code directly. > >>> 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. > >> I don't know enough to prefer either format :) I was just trying to find a >> way to make nnrss show the correct date all the time. Making nnrss able to >> do this in both the trunk and v5-10 sounds good to me though I only use >> trunk. > > Does ISO 8601 date actually cause you pain, or give you any > trouble? If so, we can call it a bug and we should fix it. ;-) As mentioned above I could live with dates in any format as long as they're correct :) Inertia makes me prefer RFC822 format but I could adapt. But the main problem is getting a date of Jan 1 1970 instead of the correct date.