From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: compute to-group parameter automatically?
Date: Fri, 17 Aug 2001 12:50:38 +0200 [thread overview]
Message-ID: <m3pu9vklj5.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <vafk80lumqg.fsf@INBOX.auto.gnus.tok.lucy.cs.uni-dortmund.de>
Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> I have an entry ("^nnimap:foo.bar$" (to-group . "foo.bar")) in
> gnus-parameters . Is there a way to compute the to-group parameter for
> many groups, so that I can say ("^nnimap:foo\\." (to-group . XXX)) and
> don't have to list each group?
No, but you can say:
(dolist (group gnus-newsrc-alist)
(when (string-match "^nnml:\\(.*\\)$" (setq group (car group)))
(insert (format "(\"^%s$\" (to-group . \"%s\"))\n"
group (match-string 1 group)))))
:-)
Having a more general substring match thing going on in that variable
would be possible, but I don't quite see how to express that:
For example:
(("mail\\..*" (gnus-show-threads nil)
(gnus-use-scoring nil)
(gnus-summary-line-format
"%U%R%z%I%(%[%d:%ub%-23,23f%]%) %s\n")
(gcc-self . t)
(display . all))
("mail\\.me" (gnus-use-scoring t))
("list\\..*" (total-expire . t)
(broken-reply-to . t)))
There's many params that contains strings... Well, I guess "\\1"
(etc) in them all could be replaced by the matching sub string. Would
that be useful?
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
next prev parent reply other threads:[~2001-08-17 10:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-03 16:33 Kai Großjohann
2001-08-05 18:13 ` Amos Gouaux
2001-08-17 10:50 ` Lars Magne Ingebrigtsen [this message]
2001-08-17 11:39 ` Kai Großjohann
2001-08-17 12:25 ` Lars Magne Ingebrigtsen
2001-08-17 14:33 ` Kai Großjohann
2001-08-17 14:45 ` Lars Magne Ingebrigtsen
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=m3pu9vklj5.fsf@quimbies.gnus.org \
--to=larsi@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).