Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: Splitting according mail date
Date: Fri, 25 Apr 2003 19:30:06 +0200	[thread overview]
Message-ID: <yoij3ck6fpsx.fsf@helm.dd.chalmers.se> (raw)
In-Reply-To: <f6ist36obi.fsf@pcyma.elca.ch>

Yves Martin <ymartin@nospam.fr> writes:

>  Now, I'm looking for a way to use parse-time-string on the Date
>  field and create a function which returns the group name...

format-time-string comes in handy.

(defun foo (date)
  (let ((group
	 (format-time-string
	  "Guilde-%h-%Y"  ;; -month-year
	  (apply 'encode-time (parse-time-string (car date))))))
    (list group)))  

>  Where the 'Date' field can be found during the split process ?

message-fetch-field.

(to "guilde@imag.fr"
 (! foo  ;; see above
    (: message-fetch-field "Date")))

-- 
Johan Bockgård


           reply	other threads:[~2003-04-25 17:30 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <f6ist36obi.fsf@pcyma.elca.ch>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yoij3ck6fpsx.fsf@helm.dd.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).