Gnus development mailing list
 help / color / mirror / Atom feed
From: lee <lee@yun.yagibdah.de>
To: ding@gnus.org
Subject: Re: Where are group parameters stored?
Date: Wed, 13 Jul 2011 22:05:53 +0200	[thread overview]
Message-ID: <87liw22bfi.fsf@yun.yagibdah.de> (raw)
In-Reply-To: <87fwma7ivx.fsf@member.fsf.org> (Tassilo Horn's message of "Wed, 13 Jul 2011 09:13:38 +0200")

Tassilo Horn <tassilo@member.fsf.org> writes:

> lee <lee@yun.yagibdah.de> writes:
>
> Hi Lee,
>
>>> (setq gnus-parameters
>>>       `((,(rx (or "emacs" "gnus"))                ;; 1)
>>>          (gnus-button-emacs-level 10))
>>>
>>> 	(,(rx "nnimap+")                             ;; 2)
>>> 	 (gnus-use-scoring nil)
>>> 	 (gcc-self . t))
>>> 	(,(rx "nnimap+Uni:ml/")                      ;; 3)
>>> 	 (gcc-self . "nnimap+Uni:Sent"))
>>> 	(,(rx "nnimap+Fastmail:INBOX.mailinglists.") ;; 4)
>>> 	 (gcc-self . "nnimap+Fastmail:INBOX.Sent Items")
>>> 	 (gnus-use-scoring t))))
>>
>> What does the above do?
>
> 1) In all groups containing emacs or gnus in their name the buttonize
>    level is increased, so that strings in articles that match an emacs
>    variable or function name are buttonized.  Clicking on them then
>    shows the help buffer you'd also get with `C-h f the-function RET'.
>
> 2) In all groups containing "nnimap+" (i.e., all groups of any IMAP
>    server) the scoring is turned of and when I start a mail in such a
>    group, then my own message is put into this group as well.
>
> 3) In all groups containing "nnimap+Uni:ml/", which is the base below I
>    have folders for different mailinglists on my university account, I
>    set an explicit sent mail folder which overrides the gcc-self from
>    2).
>
> 4) Like 3) for another account.  Again, I override the gcc-self
>    "inherited" from 2) and also activate scoring for these mailinglists.
>
> Inheritance here means that the individual parameters are applied in
> sequence.  So if you order them from lax regexps to more specific
> regexps (for example based on the folder structure like I do), you can
> set parameters for a whole set of groups first and override them for
> some exceptional groups that are matched by stricted regexps later in
> the list.

Thank you very much for the thorough explanation!

How do you make groups inherit parameters that have been set previously?
What I don't understand in particular is what the comma (`,') in an
entry does ... I can see that (rx "something") matches strings like
"something" and "something good".  So is it the comma that activates the
inheritance?

Inheritance can be very useful to me because without it, I have a lot of
repetitive entries in my list of gnus-parameters.



  reply	other threads:[~2011-07-13 20:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-08 13:31 Dave Abrahams
2011-07-08 13:40 ` Tassilo Horn
2011-07-12 17:21   ` Dave Abrahams
2011-07-12 18:26     ` Tassilo Horn
2011-07-13  0:54       ` lee
2011-07-13  7:13         ` Tassilo Horn
2011-07-13 20:05           ` lee [this message]
2011-07-13 20:50             ` inheritatively specifying group parameters (was: Where are group parameters stored?) lee
2011-07-13 21:18               ` inheritatively specifying group parameters Peter Münster
2011-07-14  6:16                 ` Tassilo Horn
2011-07-14 16:05                   ` lee
2011-07-14  6:19             ` Where are group parameters stored? Tassilo Horn
2011-07-14 16:25               ` lee
2011-07-14 18:26                 ` Tassilo Horn
2011-07-14 19:18                   ` lee
2011-07-14 17:20       ` Dave Abrahams
2011-07-13  5:23     ` Steinar Bang
2011-07-19 16:49     ` Lars Magne Ingebrigtsen
2011-07-13  5:18 ` Steinar Bang

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=87liw22bfi.fsf@yun.yagibdah.de \
    --to=lee@yun.yagibdah.de \
    --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).