From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.bugs,gmane.emacs.bbdb.user Subject: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest Date: Thu, 17 Mar 2022 16:09:06 -0400 Organization: disorganization Message-ID: References: <87ee30vo80.fsf@gnus.org> <874k3w2wqf.fsf@gnu.org> <87sfrgqs9t.fsf@gnus.org> Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10717"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: bbdb-user@nongnu.org To: 54423@debbugs.gnu.org Cancel-Lock: sha1:yP2fSrYBb3Li18VDXnzdfpbQu4A= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 17 21:10:43 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nUwSI-0002aW-Ro for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Mar 2022 21:10:42 +0100 Original-Received: from localhost ([::1]:36176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUwSH-0000L3-DV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Mar 2022 16:10:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUwRe-0000Ks-8m for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 16:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUwRd-0005Jf-Vw for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 16:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nUwRd-0004IN-Nq; Thu, 17 Mar 2022 16:10:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 17 Mar 2022 20:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54423 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: notabug X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164754779216492 (code B ref -1); Thu, 17 Mar 2022 20:10:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Mar 2022 20:09:52 +0000 Original-Received: from localhost ([127.0.0.1]:55278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUwRM-0004Ho-Uv for submit@debbugs.gnu.org; Thu, 17 Mar 2022 16:09:52 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUwRG-0004Hc-JK for submit@debbugs.gnu.org; Thu, 17 Mar 2022 16:09:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUwRF-0000JY-Vp for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 16:09:38 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:33100) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUwRE-0005IP-4k for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 16:09:37 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nUwRB-0001AI-3P for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 21:09:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228511 gmane.emacs.bbdb.user:4626 Archived-At: > * Lars Ingebrigtsen [2022-03-17 20:43:26 +0100]: > > Roland Winkler writes: > >> While I included the call of `gnus-fetch-original-field' in >> `bbdb-message-header', I need to admit that the above issue goes much >> beyond my knowledge of Gnus internals. If there are better ways for >> `bbdb-message-header' to achieve what it needs to achieve (which is >> grabbing the content of (what appear to be) headers of a message), >> then I certainly appreciate any patches for BBDB. > > If the intention is to collect data from the parent group (which is a > thing mostly just for nndoc groups), you first have to determine what > the parent group is, and then you can select the data from the buffer > that's named something like " *Original Article group.name*". ...which brings us back to my original message ;-) Specifically, `bbdb-message-header' calls --8<---------------cut here---------------start------------->8--- (defun gnus-fetch-original-field (field) "Fetch FIELD from the original version of the current article." (with-current-buffer gnus-original-article-buffer (gnus-fetch-field field))) --8<---------------cut here---------------end--------------->8--- The variable gnus-original-article-buffer evaluates to " *Original Article gmane.comp.security.risks*" and that buffer starts like this: --8<---------------cut here---------------start------------->8--- Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: RISKS List Owner Newsgroups: gmane.comp.security.risks Subject: Risks Digest 33.09 Date: Tue, 15 Mar 2022 16:23:26 PDT Approved: news@gmane.org Message-ID: 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="10317"; mail-complaints-to="usenet@ciao.gmane.io" To: risks-resend@csl.sri.com ... --8<---------------cut here---------------end--------------->8--- and (gnus-fetch-original-field "Newsgroups") returns nil even though the original article buffer contains the appropriate header... Thank you for your kind attention. -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com http://think-israel.org https://jihadwatch.org https://iris.org.il Those who can laugh at themselves will never cease to be amused.