From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35279 Path: main.gmane.org!not-for-mail From: Dmitry Yaitskov Newsgroups: gmane.emacs.gnus.general Subject: gnus-message-archive-group Q. Date: 09 Mar 2001 19:36:28 -0500 Organization: Just me at home Message-ID: <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 1035171047 2113 80.91.224.250 (21 Oct 2002 03:30:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:30:47 +0000 (UTC) Return-Path: Original-Received: (qmail 15935 invoked by alias); 10 Mar 2001 00:36:49 -0000 Original-Received: (qmail 15930 invoked from network); 10 Mar 2001 00:36:49 -0000 Original-Received: from 24.66.123.246.on.wave.home.com (HELO lucy.on.wave.home.com) (24.66.123.246) by gnus.org with SMTP; 10 Mar 2001 00:36:49 -0000 Original-Received: from Spooler by lucy.on.wave.home.com (Mercury/32 v3.21c) ID MO00035F; 9 Mar 01 19:36:49 -0500 Original-Received: from spooler by lucy.on.wave.home.com (Mercury/32 v3.21c); 9 Mar 01 19:36:36 -0500 Original-Received: from lucy.on.wave.home.com (127.0.0.1) by lucy.on.wave.home.com (Mercury/32 v3.21c) with ESMTP ID MG00035E; 9 Mar 01 19:36:28 -0500 Original-To: Ding User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.2 (Thelxepeia) Original-Lines: 33 Xref: main.gmane.org gmane.emacs.gnus.general:35279 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35279 Hi, There are a few samples for gnus-message-archive-group, including (setq gnus-message-archive-group '(("^alt" "sent-to-alt") ("mail" "sent-to-mail") (".*" "sent-to-misc"))) and (setq gnus-message-archive-group '((if (message-news-p) "misc-news" (concat "mail." (format-time-string "%Y-%m"))))) 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"))) The docs for gnus-message-archive-group say that it can be set to "an alist of regexps, functions and forms When a key "matches", the result is used." - this seems to be what I need, but I couldn't figure out a way to set it (the gnus-inews-insert-archive-gcc function treats the "(concat..." in the last example to be a string). Thanks. -- Cheers, -Dima.