From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35280 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-message-archive-group Q. Date: 09 Mar 2001 19:43:15 -0500 Sender: prj@multivac.cwru.edu Message-ID: References: <87wv9y4fzn.fsf@home.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171048 2114 80.91.224.250 (21 Oct 2002 03:30:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:30:48 +0000 (UTC) Cc: Ding Return-Path: Original-Received: (qmail 16017 invoked by alias); 10 Mar 2001 00:43:19 -0000 Original-Received: (qmail 16012 invoked from network); 10 Mar 2001 00:43:19 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (261@129.22.96.25) by gnus.org with SMTP; 10 Mar 2001 00:43:19 -0000 Original-Received: (qmail 1773 invoked by uid 500); 10 Mar 2001 00:43:37 -0000 Mail-Followup-To: ding@gnus.org, dimas@home.com Original-To: Dmitry Yaitskov In-Reply-To: <87wv9y4fzn.fsf@home.com> (Dmitry Yaitskov's message of "09 Mar 2001 19:36:28 -0500") User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 Original-Lines: 20 Xref: main.gmane.org gmane.emacs.gnus.general:35280 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35280 Dmitry Yaitskov writes: > But how can I say something like: > > (setq gnus-message-archive-group > '(("^alt" "sent-to-alt") > ("mail" (concat "mail." (format-time-string "%Y-%m"))) > (".*" "sent-to-misc"))) Assuming you don't leave Emacs running for days at a time: (setq gnus-message-archive-group `(("^alt" "sent-to-alt") ("mail" ,(concat "mail." (format-time-string "%Y-%m"))) (".*" "sent-to-misc"))) This will determine the group name once when you first evaluate it; if the month changes while Emacs is running, the group name won't be updated unless you re-eval the setq form. paul