From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/40776 Path: main.gmane.org!not-for-mail From: Nicolas Kowalski Newsgroups: gmane.emacs.gnus.general Subject: Re: archiving old mail Date: Sat, 08 Dec 2001 12:11:36 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035176274 2686 80.91.224.250 (21 Oct 2002 04:57:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:57:54 +0000 (UTC) Cc: Gnus Return-Path: Original-Received: (qmail 24041 invoked from network); 8 Dec 2001 11:13:07 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 8 Dec 2001 11:13:07 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16CfOf-0007bS-00; Sat, 08 Dec 2001 05:11:57 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 08 Dec 2001 05:11:44 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id FAA19313 for ; Sat, 8 Dec 2001 05:11:31 -0600 (CST) Original-Received: (qmail 24022 invoked by alias); 8 Dec 2001 11:11:38 -0000 Original-Received: (qmail 24017 invoked from network); 8 Dec 2001 11:11:38 -0000 Original-Received: from imag.imag.fr (129.88.30.1) by gnus.org with SMTP; 8 Dec 2001 11:11:38 -0000 Original-Received: from ormelune.imag.fr (ormelune.imag.fr [129.88.43.35]) by imag.imag.fr (8.11.6/8.11.6) with ESMTP id fB8BBaf01940; Sat, 8 Dec 2001 12:11:36 +0100 (MET) Original-Received: from anie.imag.fr.imag.fr (anie [129.88.43.111]) by ormelune.imag.fr (8.9.1b+Sun/jtpda-5.3.3) with SMTP id MAA26714 ; Sat, 8 Dec 2001 12:11:10 +0100 (MET) Original-To: Nicolas Kowalski X-Face: #v^9{p"~.e3TDs~r\ (Simon Josefsson's message of "Fri, 07 Dec 2001 20:16:43 +0100") Original-Lines: 36 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Capitol Reef, i386-debian-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:40776 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:40776 Simon Josefsson writes: > Nicolas Kowalski writes: > >> Simon Josefsson 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. >> > 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"))))) Unfortunately no. I just tried with a big group. The expiry process takes much more time, but no archive group is created. Hmm, this is perhaps the trick : the archive group should exist before the expiration process begins. What is the function for this ? Nicolas.