From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80616 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem with gnus-parameters Date: Tue, 29 Nov 2011 13:47:48 +0900 Organization: Emacsen advocacy group Message-ID: References: <878vn0c9as.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1322542160 15699 80.91.229.12 (29 Nov 2011 04:49:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2011 04:49:20 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28898@lists.math.uh.edu Tue Nov 29 05:49:16 2011 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 1RVFd6-0006i1-2O for ding-account@gmane.org; Tue, 29 Nov 2011 05:49:16 +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 1RVFc6-0000yG-FN; Mon, 28 Nov 2011 22:48:14 -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 1RVFc5-0000y5-6v for ding@lists.math.uh.edu; Mon, 28 Nov 2011 22:48:13 -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 1RVFc0-0001xj-1R for ding@lists.math.uh.edu; Mon, 28 Nov 2011 22:48:12 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RVFby-0006Zi-0U for ding@gnus.org; Tue, 29 Nov 2011 05:48:06 +0100 Original-Received: from localhost ([127.0.0.1]:34936) by orlando.hostforweb.net with smtp (Exim 4.69) (envelope-from ) id 1RVFbv-0007Jd-4S for ding@gnus.org; Mon, 28 Nov 2011 22:48:03 -0600 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (i686-pc-cygwin) Cancel-Lock: sha1:OZJXF1rvci5eHUyueOYeL20M9ys= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80616 Archived-At: Tassilo Horn wrote: > This suggests that the `gnus-parameters' are applied with the same > semantics as `gnus-posting-styles': > ,----[ (info "(gnus)Posting Styles") ] >| Each style will be applicable if the first element "matches", in some >| form or other. No, as for `gnus-parameters' the last match is applied now: 2010-09-26 Lars Magne Ingebrigtsen * gnus.el (gnus-group-fast-parameter): Return the last matching parameter instead of the first matching parameter. In addition, the value of any parameter for a `gnus-parameters' element that doesn't have that parameter is treated as nil. So, > (setq gnus-parameters > `((,(rx "nnimap+") > (gnus-use-scoring nil) > (gcc-self . t)) > ;; Where to expire > (,(rx "nnimap+Uni:") > (expiry-target . "nnimap+Uni:Trash")) > (,(rx "nnimap+Fastmail:") > (expiry-target . "nnimap+Fastmail:INBOX.Trash")) > (,(rx "nnimap+Gmail:") > (expiry-target . "nnimap+Gmail:[Google Mail]/Trash")) > ;; Mailing List exceptions > (,(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)))) for the "nnimap+Gmail:foo" group for example, there are two matching element; one sets gcc-self to t but the last one resets it to nil. Maybe the solution is to add (gcc-self . t) to every element having no gcc-self. I verified it with this form: (let ((gnus-parameters YOUR-SETTING)) (with-temp-buffer (gnus-inews-insert-gcc "nnimap+Gmail:foo") (buffer-string)))