From: Tassilo Horn <tassilo@member.fsf.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: Katsumi Yamaoka <yamaoka@jpl.org>, ding@gnus.org
Subject: Re: Problem with gnus-parameters
Date: Fri, 06 Jan 2012 23:20:39 +0100 [thread overview]
Message-ID: <87lipkqxqg.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <m3wr9436nu.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Fri, 06 Jan 2012 21:41:41 +0100")
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
Hi Lars,
>> That's actually not true. In fact, if that was true, then the
>> example above that sentence would contain "dead code" because
>> "mail\\.me" could never match because the first clause always wins.
>
> This is getting more and more confusing.
My statement was about the fact that you've written *first* match in the
info docs.
> Here's the code that's used:
>
> (defun gnus-parameters-get-parameter (group)
> "Return the group parameters for GROUP from `gnus-parameters'."
> (let ((case-fold-search (if (eq gnus-parameters-case-fold-search 'default)
> case-fold-search
> gnus-parameters-case-fold-search))
> params-list)
> (dolist (elem gnus-parameters)
> (when (string-match (car elem) group)
> (setq params-list
> (nconc (gnus-expand-group-parameters
> (car elem) (cdr elem) group)
> params-list))))
> params-list))
>
> This is extremely cumulative, and lets the last setting win.
At least, we now agree that the last match wins. And it looks quite
cumulative.
> Are you sure it's not working?
Yes. Here are my parameters.
--8<---------------cut here---------------start------------->8---
(setq gnus-parameters
`((,(rx (or "emacs" "gnus"))
(gnus-button-emacs-level 10))
(,(rx "nnimap+")
(gnus-use-scoring nil))
;; Where to expire
(,(rx "nnimap+Uni:")
(gcc-self . t)
(expiry-target . "nnimap+Uni:Trash"))
(,(rx "nnimap+Fastmail:")
(gcc-self . t)
(expiry-target . "nnimap+Fastmail:INBOX.Trash"))
(,(rx "nnimap+Gmail:")
(gcc-self . t)
(expiry-target . "nnimap+Gmail:[Google Mail]/Trash"))
;; TEST CLAUSE
(,(rx "nnimap+Uni:INBOX")
)
;; Mailing List exceptions
(,(rx "nnimap+Uni:ml/")
(gcc-self . "nnimap+Uni:Sent")
(expiry-target . "nnimap+Uni:Trash"))
(,(rx "nnimap+Fastmail:INBOX.mailinglists.")
(gcc-self . "nnimap+Fastmail:INBOX.Sent Items")
(expiry-target . "nnimap+Fastmail:INBOX.Trash")
(gnus-use-scoring t))
(,(rx "nntp+Gmane:gwene.")
(gnus-use-scoring t)
(gnus-summary-line-format
"%U%R%4{┃%}%2us%4{┃ %*%B%} %s %3{<%&user-date;>%}\n"))))
--8<---------------cut here---------------end--------------->8---
See the TEST CLAUSE. If group parameters were cumulative, then in
nnimap+Uni:INBOX I should have gcc-self working. Just tested, and the
Gcc is set to my archive group meaning no gcc-self is set.
Bye,
Tassilo
next prev parent reply other threads:[~2012-01-06 22:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 19:54 Tassilo Horn
2011-11-29 4:47 ` Katsumi Yamaoka
2011-11-29 8:37 ` Tassilo Horn
2012-01-03 21:15 ` Lars Magne Ingebrigtsen
2012-01-04 7:33 ` Tassilo Horn
2012-01-04 20:03 ` Lars Magne Ingebrigtsen
2012-01-05 10:00 ` Tassilo Horn
2012-01-06 20:41 ` Lars Magne Ingebrigtsen
2012-01-06 20:43 ` Lars Magne Ingebrigtsen
2012-01-06 22:27 ` Tassilo Horn
2012-01-06 22:44 ` Lars Magne Ingebrigtsen
2012-01-06 22:52 ` Tassilo Horn
2012-01-06 23:13 ` Lars Magne Ingebrigtsen
2012-01-06 23:37 ` Tassilo Horn
2012-01-07 0:36 ` Lars Magne Ingebrigtsen
2012-01-07 8:08 ` Tassilo Horn
2012-01-06 22:20 ` Tassilo Horn [this message]
2012-01-06 22:31 ` 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=87lipkqxqg.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=ding@gnus.org \
--cc=larsi@gnus.org \
--cc=yamaoka@jpl.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).