From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60330 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: equivalent of (vm-subject-of msg) etc Date: Wed, 18 May 2005 07:49:05 +0900 Organization: Emacsen advocacy group Message-ID: References: <871x86ryl8.fsf@mat.ucm.es> <87psvpg9se.fsf@mat.ucm.es> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1116370442 27761 80.91.229.2 (17 May 2005 22:54:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 May 2005 22:54:02 +0000 (UTC) Original-X-From: ding-owner+M8857@lists.math.uh.edu Wed May 18 00:53:53 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DYAvW-0004hZ-ES for ding-account@gmane.org; Wed, 18 May 2005 00:52:38 +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 1DYAsH-00024s-00; Tue, 17 May 2005 17:49:17 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DYAsD-00024n-00 for ding@lists.math.uh.edu; Tue, 17 May 2005 17:49:13 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DYAsC-00071X-9u for ding@lists.math.uh.edu; Tue, 17 May 2005 17:49:12 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DYAsB-0003qR-00 for ; Wed, 18 May 2005 00:49:11 +0200 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1DYAsK-0000vK-W8 for ding@gnus.org; Tue, 17 May 2005 17:49:21 -0500 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) XEmacs/21.4.17 (linux) Cancel-Lock: sha1:mwgEMkYVilTbKCGXK0O+x2Gv2wo= X-Hashcash: 1:20:050517:ding@gnus.org::ce2JJcZ4S1Djv61W:00007Nyj X-Antivirus-Scanner: Clean mail though you should still use an Antivirus 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.7 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60330 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60330 >>>>> In <87psvpg9se.fsf@mat.ucm.es> Uwe Brauer wrote: > I question I would like to insert, the from, the subject and the date > into the diary file. However unfortunately > (mail-header-date gnus-current-headers) returns > (insert (mail-header-date gnus-current-headers)) > Tue, 17 May 2005 18:55:18 +0900 > but the format for the diary, should be > May 17, 2005 18:55:18 > So I tried to change > gnus-article-time-format to > : "%b, %d %Y %T " > but it did not help, the date of the current msg (yours) did not > change. > Is there any way to get that date format I need? gnus-article-time-format is used only when displaying date in the article buffer. In this case, perhaps you'd better use general functions like the following: (format-time-string "%b %d, %Y %T" (apply 'encode-time (parse-time-string (mail-header-date gnus-current-headers)))) This form returns the string of the date in the local timezone, so "Tue, 17 May 2005 18:55:18 +0900" will be expressed as "May 17, 2005 09:55:18" (if you are in the +0000 zone).