Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: Gnus <ding@gnus.org>
Subject: Re: archiving old mail
Date: Fri, 07 Dec 2001 20:16:43 +0100	[thread overview]
Message-ID: <ilu4rn2lu1w.fsf@dhcp128.extundo.com> (raw)
In-Reply-To: <vqo7krzvta5.fsf@anie.imag.fr> (Nicolas Kowalski's message of "Fri, 07 Dec 2001 18:23:14 +0100")

Nicolas Kowalski <Nicolas.Kowalski@imag.fr> writes:

> Simon Josefsson <jas@extundo.com> writes:
>
>>>
>>> expiry-target is new in Oort.  Your challenge is to find a way to make
>>> the value of expiry-target into an eval -- I don't know if that's
>>> possible or not in the current scheme.
>>
>> `expiry-target' can be a function, it will be called narrowed to the
>> message in question.
>
>
> (Please, be comprehensive : I am a lisp newbie)
>  
> So, I could use something like :
>
> (defun gnus-user-expiry-target-function (group)
>   "Return the archive group filename"
>   (concat "archive." group "." 
>     (format-time-string "%Y.%m" 
> 		       (safe-date-to-time 
> 			(mail-header-date the-message))))
>     )                   
>                                           ^^^^^^^^^^^
>
> My problem is that I do not known how to get `the-message' with the
> current buffer.

Perhaps the following works?

(expiry-target . my-expiry-target-function)

(defun my-expiry-target-function (group)
  "Return the archive group filename"
  (concat "archive." group "." 
	  (format-time-string "%Y.%m" 
			      (safe-date-to-time 
			       (message-fetch-field "Date")))))




  reply	other threads:[~2001-12-07 19:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-07 15:43 Nicolas Kowalski
2001-12-07 15:51 ` Karl Kleinpaste
2001-12-07 16:42   ` Simon Josefsson
2001-12-07 17:23     ` Nicolas Kowalski
2001-12-07 19:16       ` Simon Josefsson [this message]
2001-12-08 11:11         ` Nicolas Kowalski
2001-12-08 13:24           ` Simon Josefsson
2001-12-08 16:49 ` Nevin Kapur

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=ilu4rn2lu1w.fsf@dhcp128.extundo.com \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /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).