Gnus development mailing list
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: ding@gnus.org
Subject: Re: how gnus-parameter works when several regexps match
Date: Thu, 10 Feb 2011 14:05:49 +0100	[thread overview]
Message-ID: <877hd8ujiq.fsf@member.fsf.org> (raw)
In-Reply-To: <m21v3g14fn.fsf@gmail.com> (Francis Moreau's message of "Thu, 10 Feb 2011 13:04:28 +0100")

Francis Moreau <francis.moro@gmail.com> writes:

Hi Francis,

>      (setq gnus-parameters
>            '(("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))
>
>              ("^nnimap:\\(foo.bar\\)$"
>               (to-group . "\\1"))
>
>              ("mail\\.me"
>               (gnus-use-scoring  t))))
>
> I'm wondering what the group parameters are for the group named
> 'mail.me'.
>
> Does it have group parameters defined by "mail\\.*" _and_ "mail\\.me"
> or only the last one ?

It should have all parameters of "mail\\..*" with the gnus-use-scoring
value of "mail\\.me", which overrides the value specified in the former.

I have this, and it works that way:

--8<---------------cut here---------------start------------->8---
(setq gnus-parameters
      `(
        (,(rx (or "emacs" "gnus"))
         (gnus-button-emacs-level 10))
        (,(rx "nnimap+")
         (gnus-use-scoring nil)
         (gcc-self . t))
        (,(rx "nnimap+Uni:ml/")
         (gcc-self . "nnimap+Uni:Sent"))
        (,(rx "nnimap+Fastmail:INBOX.mailinglists.")
         (gcc-self . "nnimap+Fastmail:INBOX.Sent Items")
         (gnus-use-scoring t))))
--8<---------------cut here---------------end--------------->8---

For example, I don't use scoring in all my nnimap groups, except for the
groups below nnimap+Fastmail:INBOX.mailinglists, where scoring is turned
on.

Bye,
Tassilo
-- 
Sent from my Emacs



  reply	other threads:[~2011-02-10 13:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-10 12:04 Francis Moreau
2011-02-10 13:05 ` Tassilo Horn [this message]
2011-02-10 22:09   ` Francis Moreau
2011-02-11  8:26     ` Tassilo Horn
2011-02-11 10:45       ` Francis Moreau

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=877hd8ujiq.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --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).