From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60802 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-treat-date-lapsed + gnus-treat-date-user-defined Date: Mon, 22 Aug 2005 21:46:31 +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 1124715105 24893 80.91.229.2 (22 Aug 2005 12:51:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2005 12:51:45 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M9334=ding+2Daccount=gmane.org@lists.math.uh.edu Mon Aug 22 14:51:40 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E7Bhp-0006o3-26 for ding-account@gmane.org; Mon, 22 Aug 2005 14:47:13 +0200 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 1E7Bhj-000537-02 for ding-account@gmane.org; Mon, 22 Aug 2005 07:47:07 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1E7Bha-00052w-00 for ding@lists.math.uh.edu; Mon, 22 Aug 2005 07:46:58 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1E7BhW-0004Es-Vu for ding@lists.math.uh.edu; Mon, 22 Aug 2005 07:46:55 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1E7AlN-0005VP-00 for ; Mon, 22 Aug 2005 13:46:49 +0200 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1E7BhK-0003OM-U3; Mon, 22 Aug 2005 07:46:43 -0500 Original-To: Karl Chen 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:nk8RnmwXlp9pf9lNwSNOZWI+hMg= X-Hashcash: 1:20:050822:quarl@cs.berkeley.edu::xe0FVZEb4Wlbuxmb:00000000000000000000000000000000000000003Fu/ X-Hashcash: 1:20:050822:ding@gnus.org::Tyw3eH85n/OSJ0Jl:00002hqW 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: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60802 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60802 >>>>> In Karl Chen wrote: > I use both `gnus-treat-date-user-defined' and > `gnus-treat-date-lapsed', with `(setq > gnus-article-date-lapsed-new-header t)'. This combination used to > work, but recently something changed (I couldn't find anything > relevant in cvs diffs or ChangeLog). I did it, sorry. I was not aware those who use `gnus-treat-date-user-defined' also use other date treatments. Because it is possible to insert any date headers using `gnus-article-time-format'. For example: (setq gnus-treat-date-user-defined 'head gnus-article-time-format (lambda (time) (let ((date (message-make-date time))) (format "Date: %s\nX-Sent: %s" (article-make-date-line date 'ut) (article-make-date-line date 'lapsed))))) (The code is inefficient, so it's no more than an example, though.) > The problem is `gnus-article-date-lapsed' is run after > `gnus-treat-date-user', and `gnus-treat-date-user' deletes both > the Date: and X-Sent: headers when writing the new Date: header. > I imagine the date-{original,iso8601} have the same problem. The > below patch fixes it by simply reordering them. The patch seems good anyway, and I cannot imagine any obstacle occurring with it. So, I'd like to install it, later. > In the long term, a better solution would be: > - `gnus-treat-date-lapsed' only adds X-Sent:; never deletes Date: > - A new `gnus-treat-delete-date' deletes Date: > - Un-combine the X-Sent: and Date: reformatting functions I think it's worth to make a study of them. Thanks.