From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46299 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: gcc fails when multiple groups are specified Date: Wed, 28 Aug 2002 19:44:57 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030556753 23387 127.0.0.1 (28 Aug 2002 17:45:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 28 Aug 2002 17:45:53 +0000 (UTC) Cc: ding Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17k6t2-00063i-00 for ; Wed, 28 Aug 2002 19:45:48 +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 17k6sf-0007f8-00; Wed, 28 Aug 2002 12:45:25 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 28 Aug 2002 12:45:58 -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 MAA13432 for ; Wed, 28 Aug 2002 12:45:43 -0500 (CDT) Original-Received: (qmail 17118 invoked by alias); 28 Aug 2002 17:45:01 -0000 Original-Received: (qmail 17113 invoked from network); 28 Aug 2002 17:45:00 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 28 Aug 2002 17:45:00 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.6/8.12.6) with ESMTP id g7SHiw2u016548 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 28 Aug 2002 19:44:59 +0200 Original-To: Bill White Mail-Copies-To: nobody X-Hashcash: 0:020828:billw@wolfram.com:35c217c73822969d X-Hashcash: 0:020828:ding@gnus.org:8dc84832611202fc In-Reply-To: (Bill White's message of "Wed, 28 Aug 2002 12:25:27 -0500") Original-Lines: 41 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46299 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46299 Bill White writes: > This is an old, old hack and it smells a bit funky: > > (setq gnus-message-archive-group > '((concat > "nnml:archive." > (format-time-string "%Y-%m" (current-time)) > (if (message-mail-p) > (when (string-match "[A-Za-z]" gnus-newsgroup-name) > ", ")) > (if (message-mail-p) > (when (string-match "[A-Za-z]" gnus-newsgroup-name) > gnus-newsgroup-name))))) The string within gnus-message-archive-group should be one group, not several (at least this is how I read the docstring for g-m-a-g, and it hasn't changed). If you want to return several groups, do: (setq gnus-message-archive-group '((list (concat "nnml:archive." (format-time-string "%Y-%m" (current-time))) (if (message-mail-p) (when (string-match "[A-Za-z]" gnus-newsgroup-name) gnus-newsgroup-name))))) I added a GNUS-NEWS section, feel free to suggest improvements: ** Group Carbon Copy (GCC) quoting To support groups that contains SPC and other weird characters, groups are quoted before they are placed in the Gcc: header. While this should not cause problems, errorenous local customization may cause problems. In particular, if you have local customizations (e.g., variables such as gnus-message-archive-group) that return the string "nnml:foo, nnml:bar" (indicating Gcc into two groups) you must change it to return the list ("nnml:foo" "nnml:bar"), otherwise the Gcc: line will be quoted incorrectly. Note that returning the string "nnml:foo, nnml:bar" was incorrect earlier, it just didn't generate any problems.