Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding <ding@gnus.org>
Subject: Re: gcc fails when multiple groups are specified
Date: Wed, 28 Aug 2002 19:44:57 +0200	[thread overview]
Message-ID: <ilud6s2vpwm.fsf@latte.josefsson.org> (raw)
In-Reply-To: <ruoofbmyjy0.fsf@billwlx.wolfram.com> (Bill White's message of "Wed, 28 Aug 2002 12:25:27 -0500")

Bill White <billw@wolfram.com> 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.




  reply	other threads:[~2002-08-28 17:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-28 17:06 Bill White
2002-08-28 17:16 ` Simon Josefsson
2002-08-28 17:25   ` Bill White
2002-08-28 17:44     ` Simon Josefsson [this message]
2002-08-28 17:57       ` Bill White
2002-08-29 17:33 ` Josh Huber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilud6s2vpwm.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).