From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: D Newsgroups: gmane.emacs.devel Subject: Gnus: (documentation) bug? gnus-extra-headers Date: Fri, 14 May 2021 22:56:48 +0000 Message-ID: <479d6005-75ab-543b-d5a6-2560fc018adc@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18666"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 15 00:57:51 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhgkf-0004WQ-UM for ged-emacs-devel@m.gmane-mx.org; Sat, 15 May 2021 00:57:49 +0200 Original-Received: from localhost ([::1]:58904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhgke-00034L-V2 for ged-emacs-devel@m.gmane-mx.org; Fri, 14 May 2021 18:57:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhgjo-0002PK-Lo for emacs-devel@gnu.org; Fri, 14 May 2021 18:56:56 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:50155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhgjl-0007mj-7s for emacs-devel@gnu.org; Fri, 14 May 2021 18:56:56 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 7278E2400FC for ; Sat, 15 May 2021 00:56:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1621033009; bh=K9XLpOkuf4Op02jJ/5HtNTFTlmcQbYaSa71/7u0LKSE=; h=To:From:Subject:Date:From; b=D96j4mgEyhBB0bSE0EeA74xg6SY4sXAQrNHz1BuUkpbuMPCeri+nn5ZuHU9LPTzJk 78nZvtmyktyhlzPsaVAt6wrep6CjW9Bba/xQk6p1x9T1VMJq9sVhSqeAFt0pIclcFI H8rwVOufi5hlTHrgETl/WXc8CUnyC0uDXcI7liaXmfrXeyXXp2Dh9H3QsRdCyJFzw1 6ihUNlW2bYmCYQrM6GUZSYeW07xhI0G/Lc5MWCp7UF9c2ryhNWOWCmmIFJSoM5BefF p+V+oXdoNv3EjYEWkXmfikT8s6i5E0pSBuAaVh36Wv5UCFifHSBWW/pzYuTHEYT4bn V2DB8tRmuZJvw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FhkRh5FnDz9rxD for ; Sat, 15 May 2021 00:56:48 +0200 (CEST) Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=d.williams@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269296 Archived-At: Hello all, I'm a bit lost trying to comprehend the functionality gnus-extra-headers supposedly provides. No matter what I do, I cannot seem to get score files to accept extra headers at all. What's worse, gnus very clearly does not seem to parse them at all. Is there some configuration missing? To give a small working example, from emacs -Q: the gnus init file simply reads (setq gnus-startup-file (locate-user-emacs-file "gnus/newsrc") nntp-authinfo-file (locate-user-emacs-file "gnus/.authinfo") gnus-dribble-directory "~/.cache/emacs/gnus/" gnus-kill-files-directory "~/News/kill/" gnus-select-method '(nntp "news.eternal-september.org" (nntp-open-connection-function nntp-open-tls-stream) (nntp-port-number 563) (nntp-address "news.eternal-september.org"))) (setq gnus-extra-headers '(To Cc Keywords Newsgroups Organization)) Trying to use a line involving any one of these extra headers for, say, Organization, does not work. That is, a score file like (("extra" ("." -5 nil r "Organization"))) won't score any article at all, independent of what I enter. However, the header is very clearly there in various posts (as can be checked by the header itself). What's worse, adding the format specifier "%~(form (gnus-extra-header 'Organization))@" (as mentioned in the manual) to gnus-group-summary-line-format reveals that the extra header is never recognized at all, always returning the empty string. Yet, variables like gnus-visible-headers (which take strings instead of symbols, granted) accept Organization no problem, and display the correct value in the articles that have the header. Is there some missing flag that I'm missing? I very much doubt it's a bug... Cheers, D.