From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44198 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Archiving old emails Date: Mon, 08 Apr 2002 14:20:57 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87it73ig60.fsf@vsnl.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018268574 14131 127.0.0.1 (8 Apr 2002 12:22:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 8 Apr 2002 12:22:54 +0000 (UTC) Cc: ding@gnus.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16uYAg-0003fo-00 for ; Mon, 08 Apr 2002 14:22:54 +0200 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 16uY9k-0003NP-00; Mon, 08 Apr 2002 07:21:56 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 08 Apr 2002 07:22:03 -0500 (CDT) 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 HAA02560 for ; Mon, 8 Apr 2002 07:21:52 -0500 (CDT) Original-Received: (qmail 24008 invoked by alias); 8 Apr 2002 12:21:35 -0000 Original-Received: (qmail 24002 invoked from network); 8 Apr 2002 12:21:34 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 8 Apr 2002 12:21:34 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g38CL3b02353; Mon, 8 Apr 2002 14:21:03 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id OAA21072; Mon, 8 Apr 2002 14:20:58 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 11D793AEF1; Mon, 8 Apr 2002 14:20:58 +0200 (CEST) Original-To: gnu@vsnl.net (Ramakrishnan M) In-Reply-To: <87it73ig60.fsf@vsnl.net> (gnu@vsnl.net's message of "07 Apr 2002 22:45:19 +0530") Original-Lines: 26 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44198 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44198 gnu@vsnl.net (Ramakrishnan M) writes: > (setq gnus-split-methods '(((equal gnus-newsgroup-name "personal") > (concat "personal-mails-archive." > (format-time-string "%m-%Y" (current-time)))) > ((equal gnus-newsgroup-name "rkrishnan.debian") > (concat "rkrishnan-debian-archives." > (format-time-string "%m-%Y" (current-time)))))) Assuming that you start Emacs at the beginning of the month, you can put the month into the value of the variable directly: (setq gnus-split-methods `(((equal gnus-newsgroup-name "personal") ,(concat "personal-mails-archive." (format-time-string "%m-%Y" (current-time)))) ((equal gnus-newsgroup-name "rkrishnan.debian") ,(concat "rkrishnan-debian-archives." (format-time-string "%m-%Y" (current-time)))))) Note "`" instead of "'" and the commata. If you don't start Emacs at the beginning of the month, you can use midnight.el to have Emacs execute the above Lisp statement once a day. kai -- Silence is foo!