From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80788 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem with gnus-parameters Date: Fri, 06 Jan 2012 23:20:39 +0100 Message-ID: <87lipkqxqg.fsf@thinkpad.tsdh.de> References: <878vn0c9as.fsf@thinkpad.tsdh.de> <878vmziasx.fsf@tsdh.uni-koblenz.de> <877h17udki.fsf@tsdh.uni-koblenz.de> <87ty4ajwp2.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1325888486 17902 80.91.229.12 (6 Jan 2012 22:21:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2012 22:21:26 +0000 (UTC) Cc: Katsumi Yamaoka , ding@gnus.org To: Lars Magne Ingebrigtsen Original-X-From: ding-owner+M29070@lists.math.uh.edu Fri Jan 06 23:21:22 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RjIA5-0000bI-1N for ding-account@gmane.org; Fri, 06 Jan 2012 23:21:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RjI9d-0000d2-Gi; Fri, 06 Jan 2012 16:20:53 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RjI9a-0000cr-Qx for ding@lists.math.uh.edu; Fri, 06 Jan 2012 16:20:50 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RjI9W-0008Ue-Bx for ding@lists.math.uh.edu; Fri, 06 Jan 2012 16:20:50 -0600 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RjI9U-00083c-EL for ding@gnus.org; Fri, 06 Jan 2012 23:20:44 +0100 Original-Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 3DB1A20B9E for ; Fri, 6 Jan 2012 17:20:42 -0500 (EST) Original-Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 06 Jan 2012 17:20:42 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type :content-transfer-encoding; s=smtpout; bh=6skqiWEf/XkLl0lIj8cH2D Tv8ek=; b=NqJKCRlrk6i8eCzThHlGjCkgfvb/10oCVHMlfWavYG4ona4dt7FOwD XmLCODIwBfo5y6n7LyrqJqIxmOAsEcievyOPd009uJjfFobqW5ljTLKn2tSjy6rA UAu2ttzvKMcq5cnw11io9rUTID6jjA1BkrZPiXk/7iM/h5cpEVFEI= X-Sasl-enc: /pFu26YXH0CjqaVkmoNh/Z4ZOBHrY1dz449RDHDk1IsU 1325888441 Original-Received: from thinkpad.tsdh.de (91-67-11-43-dynip.superkabel.de [91.67.11.43]) by mail.messagingengine.com (Postfix) with ESMTPSA id E887D8E00DC; Fri, 6 Jan 2012 17:20:40 -0500 (EST) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Fri, 06 Jan 2012 21:41:41 +0100") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80788 Archived-At: Lars Magne Ingebrigtsen 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 'defau= lt) > 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") ) =09 ;; 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{=E2=94=83%}%2us%4{=E2=94=83 %*%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