From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 16 11:14:05 2022 Received: (at submit) by debbugs.gnu.org; 16 Mar 2022 15:14:05 +0000 Received: from localhost ([127.0.0.1]:52028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUVLZ-0001mv-DR for submit@debbugs.gnu.org; Wed, 16 Mar 2022 11:14:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:36808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUVLT-0001mh-U2 for submit@debbugs.gnu.org; Wed, 16 Mar 2022 11:13:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUVLT-0004Oi-O6 for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2022 11:13:51 -0400 Received: from [2607:f8b0:4864:20::f30] (port=45016 helo=mail-qv1-xf30.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUVLR-0006jh-Fz; Wed, 16 Mar 2022 11:13:51 -0400 Received: by mail-qv1-xf30.google.com with SMTP id kj21so2025448qvb.11; Wed, 16 Mar 2022 08:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:user-agent:return-receipt-to:reply-to:date :message-id:mime-version; bh=KLC6bIysTI3Rd46MKjae83NLVEA2mqBmuGZ8bwL/tSk=; b=U0xxHicmM/xF2/sFUFhLOnfGIHmIBwfaI/rKLwAwbGpw+LP8N5VNrMD4Qi5lIDnDPa SioiOcMzgmrAL/rQ/XFE+jLmVV5bj5nvdOsBrPLin/r9VX9k8UCSTHejW0ePA9we9lOQ EKCwraciBAoljV9S8YhSlldHpymO+QknrtM9lBPTrMqQs3q6+cv6OJviXG7Z3NCqj5s0 IH+BxdwHr5AJeSQ0/10xtsxWP7XNDRiazj5X4Z191GaI5YfrWTuNkvpPyL6bBtrWvoKK 7qTt81fqo6jYBann6kSWvBVrLP1pLu80CuJ3ju96RhVRK5DHQGrvAg1sypeZ+mtFVeVO OWFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:user-agent :return-receipt-to:reply-to:date:message-id:mime-version; bh=KLC6bIysTI3Rd46MKjae83NLVEA2mqBmuGZ8bwL/tSk=; b=H5HyT3KU+J1kirgdDLmNqMiVsQAbWoFdlAgclHMlLNvWPknmYt26NOj55xwptvWh1F 0rtrLJ0C3mayR33pALYsPv9IUdMAmWf/SLstMcmG2P6cVtJtrIdOXuYB+E9ckkXlN7oF NxwXTLCG+jVJdLSRpYngSuWa0GO0yXRKDKyaJVmNZwnvIghE6dj6mRifO0Ei1AhmFxtg VhpFTIFLMRn5yiCW/OzTMUOLlqXDxDvkscMBLAkadijoNH0JqIjhE79AONs9QoQAuISn sWTVfVYvD7KQirUDsYkpomX+Lfz5oXFH9v/QVmgxP3CAmjUTHpTohGkvH5M9w3mjDoyW 56xg== X-Gm-Message-State: AOAM531UgNywuaXar5RD0r4YQZXf+Lo6Y6St3So6/VGpD+6d0aP1+TJF wEHuwZ1Cv4zXJoO1otDgyj9CLEnn5Q== X-Google-Smtp-Source: ABdhPJwx46l9XGkpKfdSgYaUfpiRXPY12k0Ygl9ebyx4fqcytBGfKz2RRmSj/zaOUlDfQ//Gs51Drg== X-Received: by 2002:a05:6214:d84:b0:435:2f91:8c3e with SMTP id e4-20020a0562140d8400b004352f918c3emr273247qve.106.1647443626968; Wed, 16 Mar 2022 08:13:46 -0700 (PDT) Received: from 3c22fb11fdab.ant.amazon.com (pool-108-30-23-113.nycmny.fios.verizon.net. [108.30.23.113]) by smtp.gmail.com with ESMTPSA id z28-20020a05620a101c00b0067d940a74b2sm1004751qkj.39.2022.03.16.08.13.46 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Mar 2022 08:13:46 -0700 (PDT) From: Sam Steingold To: bug-gnu-emacs@gnu.org Subject: 29.0.50; gnus-fetch-original-field returns nil in digest User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) X-Debbugs-Package: emacs,gnus X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Wed, 16 Mar 2022 11:13:45 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f30 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f30; envelope-from=sam.steingold@gmail.com; helo=mail-qv1-xf30.google.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sds@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) In the group gmane.comp.security.risks on server nntp:news.gmane.io open an article and type C-d (gnus-summary-enter-digest-group). Then enter a message from the summary buffer (e.g., SPC) and now (gnus-fetch-original-field "Newsgroups") returns nil instead of "gmane.comp.security.risks" as it should. 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--- In GNU Emacs 29.0.50 (build 4, x86_64-apple-darwin21.3.0, NS appkit-2113.30 Version 12.2.1 (Build 21D62)) of 2022-03-14 built on 3c22fb11fdab.ant.amazon.com Repository revision: 1c4421183ed93fb033e17934205934ca3c423908 Repository branch: master Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.2.1 Configured using: 'configure --with-imagemagick --with-mailutils --with-ns PKG_CONFIG_PATH=' Configured features: ACL GIF GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP ZLIB Important settings: value of $LANG: C locale-coding-system: utf-8-unix Major mode: Group Minor modes in effect: shell-dirtrack-mode: t gnus-undo-mode: t global-edit-server-edit-mode: t winner-mode: t which-function-mode: t url-handler-mode: t desktop-save-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t Load-path shadows: None found. Features: (shadow emacsbug bbdb-message mailalias sendmail cookie1 debug pulse color xref project grep edebug backtrace shortdoc nndoc sort smiley gnus-cite textsec uni-scripts idna-mapping uni-confusable textsec-check gnus-async gnus-bcklg gnus-dup mail-extr gnus-ml hl-line disp-table spam spam-stat gnus-uu yenc nndraft nnmh gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg utf-7 gnus-cache bbdb-gnus gnutls network-stream nsm nntp cal-move dabbrev log-view vc-annotate misearch multi-isearch cl-print help-fns radix-tree skeleton log-edit pcvs-util smerge-mode diff vc-mtn vc-src vc-sccs vc-svn vc-cvs vc-rcs pcase package compile add-log vc-hg vc-bzr tramp-cache tramp-sh tramp tramp-loaddefs trampver tramp-integration cus-edit pp cus-start files-x tramp-compat shell ls-lisp remember flyspell ispell org-element avl-tree generator cl-extra help-mode ol-eww eww xdg url-queue thingatpt mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr pixel-fill kinsoku url-file url-dired svg dom browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message mailcap yank-media rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums gmm-utils mailheader gnus-win ol-docview doc-view jka-compr image-mode exif dired dired-loaddefs ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 ol rx org-keys oc org-compat org-macs org-loaddefs format-spec find-func cal-x view cal-china cal-bahai cal-islam holidays hol-loaddefs bbdb-anniv cal-iso cal-hebrew lunar cal-julian solar cal-dst appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs vc-dir ewoc vc bug-reference vc-git diff-mode easy-mmode vc-dispatcher midnight warnings gnus nnheader gnus-util text-property-search time-date mail-utils range mm-util mail-prsvr wid-edit bbdb-mua bbdb-com crm mailabbrev bbdb bbdb-site timezone edit-server advice server winner ring which-func imenu url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map seq gv subr-x byte-opt bytecomp byte-compile cconv url-vars help-at-pt desktop frameset cl-loaddefs cl-lib cus-load info iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 725528 101544) (symbols 48 30868 14) (strings 32 241311 4085) (string-bytes 1 6143183) (vectors 16 88608) (vector-slots 8 1265635 76111) (floats 8 1234 740) (intervals 56 17524 3282) (buffers 992 81)) -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com https://www.dhimmitude.org https://thereligionofpeace.com Parachute for sale, used once, never opened, small stain. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 06:59:53 2022 Received: (at 54423) by debbugs.gnu.org; 17 Mar 2022 10:59:53 +0000 Received: from localhost ([127.0.0.1]:53170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUnrF-0006Ky-9n for submit@debbugs.gnu.org; Thu, 17 Mar 2022 06:59:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUnrE-0006Kh-9I for 54423@debbugs.gnu.org; Thu, 17 Mar 2022 06:59:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uPecO5pQ6lnFAarDSP5gGQR0EIO867ADmi2B1/zGg98=; b=LlaWD0hNK9coXWXGH+doQeFaN9 e0GuuHMkC20MpQrz/KQoy5fTh9V1yK5rbzaSzu9NsS3WKlAeEqmCHbTtyctanKEc8ScikV4zRUudO WdVR2/D55e/GceY0sz4dVZbN/DOEY+XYqW7StUwz5njcKPzKtJpmB8R795uH913ryz+E=; Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUnr6-0006N8-1Z; Thu, 17 Mar 2022 11:59:46 +0100 From: Lars Ingebrigtsen To: Sam Steingold Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest References: Date: Thu, 17 Mar 2022 11:59:43 +0100 In-Reply-To: (Sam Steingold's message of "Wed, 16 Mar 2022 11:13:45 -0400") Message-ID: <87ee30vo80.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Sam Steingold writes: > In the group gmane.comp.security.risks on server nntp:news.gmane.io open > an article and type C-d (gnus-summary-enter-digest-group). > Then enter a message from the summary buffer (e.g., SPC) > and [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54423 Cc: 54423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Sam Steingold writes: > In the group gmane.comp.security.risks on server nntp:news.gmane.io open > an article and type C-d (gnus-summary-enter-digest-group). > Then enter a message from the summary buffer (e.g., SPC) > and now (gnus-fetch-original-field "Newsgroups") returns nil instead of > "gmane.comp.security.risks" as it should. > The variable gnus-original-article-buffer evaluates to > " *Original Article gmane.comp.security.risks*" > and that buffer starts like this: I think there's a misunderstanding here -- the "original" that the function is fetching is the unformatted "original" version of the thing that's displayed in the *Article* buffer. It has nothing to do with how the article was sourced (which was via a digest in this case). So this is working as designed. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 06:59:59 2022 Received: (at control) by debbugs.gnu.org; 17 Mar 2022 10:59:59 +0000 Received: from localhost ([127.0.0.1]:53173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUnrL-0006LG-I3 for submit@debbugs.gnu.org; Thu, 17 Mar 2022 06:59:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUnrK-0006Kx-8H for control@debbugs.gnu.org; Thu, 17 Mar 2022 06:59:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LgB3eKKywqDu1No8Kb3RboGeIMwb0QRBulkmKeGPTZw=; b=MCaWfY+uRM3TRj2OAD4rCpy4bd 4TFQi4NwOFqjAyJ1y3IqJlZdIcB/Ug1KdOh4uKVcGlJPGq5WQmAdKtv9VX6UZsODcxetZVz849WvD I+t7U7EFloX9sJ4o9c0CCNhbPdaIBG40jNMmJZBbFq+/e62XXY6YUK5nJbJ8UqETsEEI=; Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUnrC-0006NG-SC for control@debbugs.gnu.org; Thu, 17 Mar 2022 11:59:52 +0100 Date: Thu, 17 Mar 2022 11:59:50 +0100 Message-Id: <87czikvo7t.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #54423 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 54423 notabug close 54423 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 54423 notabug close 54423 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 08:06:21 2022 Received: (at 54423) by debbugs.gnu.org; 17 Mar 2022 12:06:21 +0000 Received: from localhost ([127.0.0.1]:53409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUotY-0008QQ-OI for submit@debbugs.gnu.org; Thu, 17 Mar 2022 08:06:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUotW-0008QA-5m for 54423@debbugs.gnu.org; Thu, 17 Mar 2022 08:06:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sQ1Je3yPKPjfSW23hgHmmr1H9p/rubURxDK0a78ALw8=; b=Y9GK1IwzlJP3Q13kRorDYXEC1+ jI2V8jAurChZoxYKmKMo9SRSVN+hAB+Vdep9/Mnbj8t79OgT4Jk+cGR+lc1RzLXUG1ie72cG8ca1X O1VzhBozxzoWdbhbmeJEUkGYNT/hkYH80Fci0RxEI3aPhL4jdHBR1GvBBT3XiBLBSlqY=; Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUotN-000757-HQ; Thu, 17 Mar 2022 13:06:11 +0100 From: Lars Ingebrigtsen To: Sam Steingold Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest References: <87ee30vo80.fsf@gnus.org> Date: Thu, 17 Mar 2022 13:06:08 +0100 In-Reply-To: <87ee30vo80.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 17 Mar 2022 11:59:43 +0100") Message-ID: <87cziku6kv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > So this is working as designed. If you want to get at the newsgroup name of the parent group, that's stashed in the info params, so you should be able to get at that data via something like: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54423 Cc: 54423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > So this is working as designed. If you want to get at the newsgroup name of the parent group, that's stashed in the info params, so you should be able to get at that data via something like: (gnus-info-params (gnus-get-info gnus-newsgroup-name)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 11:25:16 2022 Received: (at 54423) by debbugs.gnu.org; 17 Mar 2022 15:25:16 +0000 Received: from localhost ([127.0.0.1]:54993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUrzz-0003P3-9Y for submit@debbugs.gnu.org; Thu, 17 Mar 2022 11:25:16 -0400 Received: from mail-qk1-f181.google.com ([209.85.222.181]:33287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUrzs-0003ON-V4 for 54423@debbugs.gnu.org; Thu, 17 Mar 2022 11:25:09 -0400 Received: by mail-qk1-f181.google.com with SMTP id k125so4637948qkf.0 for <54423@debbugs.gnu.org>; Thu, 17 Mar 2022 08:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:in-reply-to:references:user-agent :return-receipt-to:reply-to:date:message-id:mime-version; bh=P+s2BRrQonnau8m1q7qpwb2GEoee0eln9AGf5BSHS4E=; b=HyOyafIi8HOnbsag43FqfzvA7qg34b17zW3EXADPjNPTlWlrhcDx8PZhH87tOHy1TN CiE6vo5nLZWZ7z5bsSn6iJxZXIJ9Sn3EacG8B2zZXtULT6SWC24YuUVHUymJHNT3/byO KyUbYvQKPi8aF2km5neDtl8UWQSMQ5u653gHpA6ycNRJ9h+K3kTK99TwnqA/gkIBo0x6 CHXna4TgY9rWyFnqcUUvOj0dqqBbht/5DGjw1NYYDUVMKbhdQyOQeoUZz0aCQ/QGWs2o SyTs6Urnt996nyIIMAx+1UG/iPDiuDJgis2HsiWhLZDfnasx41eApCujSmCPt6xtpxtJ W+aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :user-agent:return-receipt-to:reply-to:date:message-id:mime-version; bh=P+s2BRrQonnau8m1q7qpwb2GEoee0eln9AGf5BSHS4E=; b=qjYNV4TQqnCCVwPqRNJH2bWPcZzHJLCPsXhDM9RRsg4tCitfc9qIuw226tqGSSn7W+ S6sBE5z3yIevCJTt13L/chDyf/9j2zei3buF0LG+fjALQqcAJDEaFZHQRH9p5CD27Q4t 6gDLmmWasNj/owq8NjSLgHAG0myCpAmQbXU4s+Nemi6YYc1XY4pUIQqfT/1fIcRBWJGh U8I8UX8af83rO5fWZ648b+k0LEfWZtgRczs4+Z8VpRqkvdzsVCzMiyQPU5z4aY4RT1hO If6wfTgXKYJXywsgq9cAP4YID8Unfl2TSIdA3+QQfEARZi0gG61IUVbLtUY8Kv20d2Qm RO3A== X-Gm-Message-State: AOAM530E+1jWNhr/CWutyXTmfUOTq2QGwbKmhONRwrkBOBwBwRhz2nIi hIORGwCrOTwvYwKM4Ei2QQ== X-Google-Smtp-Source: ABdhPJz7fmEB01gjKAh3z6PtwNfFDM79gpykhGDfMoOqKN0bViQFD1+u4TBOLITj4O0Ju+WwvgAiOg== X-Received: by 2002:a05:620a:29d6:b0:67d:4fb9:b5d0 with SMTP id s22-20020a05620a29d600b0067d4fb9b5d0mr3171214qkp.315.1647530699207; Thu, 17 Mar 2022 08:24:59 -0700 (PDT) Received: from 3c22fb11fdab.ant.amazon.com (pool-108-30-23-113.nycmny.fios.verizon.net. [108.30.23.113]) by smtp.gmail.com with ESMTPSA id t19-20020ac85893000000b002e1afa26591sm4009566qta.52.2022.03.17.08.24.58 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Mar 2022 08:24:58 -0700 (PDT) From: Sam Steingold To: Lars Ingebrigtsen Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest In-Reply-To: <87cziku6kv.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 17 Mar 2022 13:06:08 +0100") References: <87ee30vo80.fsf@gnus.org> <87cziku6kv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Thu, 17 Mar 2022 11:24:57 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 54423 Cc: 54423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sds@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) > * Lars Ingebrigtsen [2022-03-17 13:06:08 +0100]: > > Lars Ingebrigtsen writes: > >> So this is working as designed. > > If you want to get at the newsgroup name of the parent group, that's > stashed in the info params, so you should be able to get at that data > via something like: > > (gnus-info-params (gnus-get-info gnus-newsgroup-name)) for gnus-newsgroup-name = "gmane.comp.security.risks", the above returns --8<---------------cut here---------------start------------->8--- ((timestamp . 1647530087)) --8<---------------cut here---------------end--------------->8--- How do I get the headers like "Newsgroups" or "Content-Type"? -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com https://honestreporting.com https://jij.org https://ffii.org Who is General Failure and why is he reading my hard disk? From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 11:29:57 2022 Received: (at 54423) by debbugs.gnu.org; 17 Mar 2022 15:29:57 +0000 Received: from localhost ([127.0.0.1]:55005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUs4W-0003Vh-R4 for submit@debbugs.gnu.org; Thu, 17 Mar 2022 11:29:57 -0400 Received: from mail-qv1-f41.google.com ([209.85.219.41]:33481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUs4N-0003VL-DP for 54423@debbugs.gnu.org; Thu, 17 Mar 2022 11:29:51 -0400 Received: by mail-qv1-f41.google.com with SMTP id jq9so4511750qvb.0 for <54423@debbugs.gnu.org>; Thu, 17 Mar 2022 08:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:in-reply-to:references:user-agent :return-receipt-to:reply-to:date:message-id:mime-version; bh=4bFLPfsD/DYPIUVKwTG99+iq23HATxgSZezV5krY+XU=; b=Mx0Yj4ZscIoF7UaH4PuHFBf16at8q0cvNELssuI4LxaX8DGBtlEx5x03QjgxNrYxBm t/Wk2SjbT+eOUUzPCFsLspbjMyXSegDxC7qjSpR9EXX+15BOfL2iQkpIOIIW4udfu8lA Qey8jCRuiWEDdRFL2HwyN8ODhP7buC3BFp3SWASadqdqXtQNmdQgJKvmENfebALSjUot KM+ncTIK54oThzqsvuLRBa7FnyyG/w+II4dVBVgRTk7y2MMemfi/daL3m/vnrEITYR8o h9zBc4RdXRTDaFX80CubT18lnPnBkbwhtpfbaQfnCRadwc5Aqqy18n+A/eFGKmw4riq+ 1apA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :user-agent:return-receipt-to:reply-to:date:message-id:mime-version; bh=4bFLPfsD/DYPIUVKwTG99+iq23HATxgSZezV5krY+XU=; b=CKGDdrD1Hbn8Qej5KHbWOz1Dpro9scFZbZumtn3SnGawIupRSkgVXs0AnZ5GSzyKDE 8ZSO42WQD/P1iwkq8nDdbIgK3W9ZPRK2GC7ukjr4fTw+CeADOnP9Sc6NQDg/eWVdX2oj VyYxo0ijU4n5IpV8zgzz+QBKR8wed4lDmqaPuvmE6KxlM2szyKHLvXI7kXHVHXr55+V2 xLs0jMfY19deZqX8mK5wBHyRq1C5HFDv+blgZ2W8lpcEcrxG8MRYbG7jUWn31ifLI1XK o1AlrScW/L5XeEGR6sLIVqwni4keRsAmCborsqYtqVBpmcvtxJZ8u/CNoSVo1GIs4+R9 21Pw== X-Gm-Message-State: AOAM5304MTI0fEyaO6ZYS4BwVz4AjjEdy/JJiEc1D5wd2ASH3nCD6HQZ TE1atnp6EePOmI/2eftqqQ== X-Google-Smtp-Source: ABdhPJwgLgucGXxk17i6umBancf5gGVbWgU7DOSYUrcQDPmFpJklR2ssUxHr+EYJUoYGo843BbP4Cg== X-Received: by 2002:a05:6214:2349:b0:439:9e84:eb21 with SMTP id hu9-20020a056214234900b004399e84eb21mr3986174qvb.78.1647530977890; Thu, 17 Mar 2022 08:29:37 -0700 (PDT) Received: from 3c22fb11fdab.ant.amazon.com (pool-108-30-23-113.nycmny.fios.verizon.net. [108.30.23.113]) by smtp.gmail.com with ESMTPSA id f17-20020ac87f11000000b002e1e831366asm3750225qtk.77.2022.03.17.08.29.37 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Mar 2022 08:29:37 -0700 (PDT) From: Sam Steingold To: Lars Ingebrigtsen Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest In-Reply-To: <87ee30vo80.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 17 Mar 2022 11:59:43 +0100") References: <87ee30vo80.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Thu, 17 Mar 2022 11:29:36 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 54423 Cc: bbdb-user@nongnu.org, 54423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sds@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) I added bbdb-user to CC. For context (see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54423 for full details), the problem is that `bbdb-message-header' calls `gnus-fetch-original-field' which, for a digest group, returns nil. This prevents `bbdb-accept-message-alist' from working for, e.g., --8<---------------cut here---------------start------------->8--- (("Newsgroups" . "\\(gmane\\.emacs\\|gmane\\.comp\\.security\\.risks\\)")) --8<---------------cut here---------------end--------------->8--- because every message in gmane.comp.security.risks is a digest. > * Lars Ingebrigtsen [2022-03-17 11:59:43 +0100]: > > Sam Steingold writes: > >> In the group gmane.comp.security.risks on server nntp:news.gmane.io open >> an article and type C-d (gnus-summary-enter-digest-group). >> Then enter a message from the summary buffer (e.g., SPC) >> and now (gnus-fetch-original-field "Newsgroups") returns nil instead of >> "gmane.comp.security.risks" as it should. >> The variable gnus-original-article-buffer evaluates to >> " *Original Article gmane.comp.security.risks*" >> and that buffer starts like this: > > I think there's a misunderstanding here -- the "original" that the > function is fetching is the unformatted "original" version of the thing > that's displayed in the *Article* buffer. It has nothing to do with how > the article was sourced (which was via a digest in this case). > > So this is working as designed. Okay, so how do I extract "Newsgroups" or "Content-Type" for a message in a digest? Thank you Lars. -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com https://mideasttruth.com https://jij.org https://honestreporting.com I may be getting older, but I refuse to grow up! From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 11:36:04 2022 Received: (at 54423) by debbugs.gnu.org; 17 Mar 2022 15:36:04 +0000 Received: from localhost ([127.0.0.1]:55018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUsAW-0003gf-CQ for submit@debbugs.gnu.org; Thu, 17 Mar 2022 11:36:04 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUsAU-0003gA-0Z for 54423@debbugs.gnu.org; Thu, 17 Mar 2022 11:36:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=h5Q2TbPEzc1ezSJV3jrZ+HPtI9mJ28MrRqaHMgjSz84=; b=qdD1ZaIimHAigPn+UP/pWNhX8x aznU0G/lspTqVSB3tuWPYZxJYS04DQkZQiaxYohLQkQUzbyDt73KMAyzYdjwyWIDQ6N1ez30XbL5s BOHxPhSqspBjVaYXTGmEqXGFbrm73v2mDAEKn6eOP9DyaNlii7HO3nRayajr/mnUoUxA=; Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUsAK-0000kX-Mc; Thu, 17 Mar 2022 16:35:55 +0100 From: Lars Ingebrigtsen To: Sam Steingold Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest References: <87ee30vo80.fsf@gnus.org> <87cziku6kv.fsf@gnus.org> Date: Thu, 17 Mar 2022 16:35:51 +0100 In-Reply-To: (Sam Steingold's message of "Thu, 17 Mar 2022 11:24:57 -0400") Message-ID: <87k0cssiaw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Sam Steingold writes: >> (gnus-info-params (gnus-get-info gnus-newsgroup-name)) > > for gnus-newsgroup-name = "gmane.comp.security.risks", the above returns > > ((timestamp . 1647530087)) Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54423 Cc: 54423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Sam Steingold writes: >> (gnus-info-params (gnus-get-info gnus-newsgroup-name)) > > for gnus-newsgroup-name = "gmane.comp.security.risks", the above returns > > ((timestamp . 1647530087)) You have to call that in the nndoc group. > How do I get the headers like "Newsgroups" or "Content-Type"? I don't think the latter is stored anywhere. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 15:41:04 2022 Received: (at 54423) by debbugs.gnu.org; 17 Mar 2022 19:41:04 +0000 Received: from localhost ([127.0.0.1]:55232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUvzc-0003Yd-6i for submit@debbugs.gnu.org; Thu, 17 Mar 2022 15:41:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUvza-0003Y3-NU for 54423@debbugs.gnu.org; Thu, 17 Mar 2022 15:41:03 -0400 Received: from [2001:470:142:3::e] (port=34136 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUvzV-0000wF-A5; Thu, 17 Mar 2022 15:40:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=W+vofR+IR9f0KacUQ/Pmuspj05E6GYcabfOGk/5STH8=; b=llMMeEF6Zh7UWL7EGHns eABU8snJ0FEmolkxu96pOMYlYsTILOvDIfzR798fT0D4SPklMIED+5FmMzxNP/CQMbdvi1+rF14Ck xo764DQ77fMsMJwq22OQuSeWEQ8Xpg46QmZ8Jb0zRSLrE1NPf2E4mWcJ3te0Ia9vUop8ZyHesHO0a I3HfsTxETLiP+XSwO0wuFnYZAxEPcVnTED5UzE7Xn+9w6zWrjuniMk2ATwAT/4RJXx3wV0Ljvzf6u BJ+da1k55CZYBXn5uujnH+MCp6tx/jobRnpDHw1cxPn7q/8G+XX0e0ZxY8t4WAGbhEiaw+7SXDNs5 pGzTwjV95tfdSg==; Received: from [2600:1700:5650:f790::42] (port=34582 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUvzU-0000nY-T6; Thu, 17 Mar 2022 15:40:56 -0400 From: Roland Winkler To: Sam Steingold Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest References: <87ee30vo80.fsf@gnus.org> Date: Thu, 17 Mar 2022 14:40:56 -0500 In-Reply-To: (Sam Steingold's message of "Thu, 17 Mar 2022 11:29:36 -0400") Message-ID: <874k3w2wqf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54423 Cc: bbdb-user@nongnu.org, Lars Ingebrigtsen , 54423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Thu, Mar 17 2022, Sam Steingold wrote: > the problem is that `bbdb-message-header' calls > `gnus-fetch-original-field' which, for a digest group, returns nil. > This prevents `bbdb-accept-message-alist' from working for, e.g., > > (("Newsgroups" . "\\(gmane\\.emacs\\|gmane\\.comp\\.security\\.risks\\)")) > > because every message in gmane.comp.security.risks is a digest. 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. Roland From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 15:43:38 2022 Received: (at 54423) by debbugs.gnu.org; 17 Mar 2022 19:43:38 +0000 Received: from localhost ([127.0.0.1]:55237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUw26-0003cF-JV for submit@debbugs.gnu.org; Thu, 17 Mar 2022 15:43:38 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUw24-0003c1-VF for 54423@debbugs.gnu.org; Thu, 17 Mar 2022 15:43:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ok40LyZeKF20kpxabzw5H4a8z8o/jV9N94KzoXnFhEE=; b=fYI1l05i0p+DpENylRNgLbygT5 gcEGNca1x4xi6bWCjwGQ9kgVbermCHALprOykNl8OqywlPwOYqPBNbtFVAdrgoToE2GX3UbvuzLm9 /LSJEaM26ZMNee0v5DGXQV7PxTFsVtQrzCMik7XHwO7NXEZJaoIlPRn/hsdyvYoeyq5U=; Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUw1v-0003X0-Ty; Thu, 17 Mar 2022 20:43:30 +0100 From: Lars Ingebrigtsen To: Roland Winkler Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest References: <87ee30vo80.fsf@gnus.org> <874k3w2wqf.fsf@gnu.org> Date: Thu, 17 Mar 2022 20:43:26 +0100 In-Reply-To: <874k3w2wqf.fsf@gnu.org> (Roland Winkler's message of "Thu, 17 Mar 2022 14:40:56 -0500") Message-ID: <87sfrgqs9t.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54423 Cc: bbdb-user@nongnu.org, Sam Steingold , 54423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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*". -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 15:51:27 2022 Received: (at 54423) by debbugs.gnu.org; 17 Mar 2022 19:51:28 +0000 Received: from localhost ([127.0.0.1]:55259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUw9f-0003qp-LO for submit@debbugs.gnu.org; Thu, 17 Mar 2022 15:51:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUw9d-0003qb-Oi for 54423@debbugs.gnu.org; Thu, 17 Mar 2022 15:51:26 -0400 Received: from [2001:470:142:3::e] (port=34248 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUw9Y-0002UE-6A; Thu, 17 Mar 2022 15:51:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=YUCguZw90fO1mOUNqiglCXkDkbuYPhDaAJPGoRCjBr8=; b=sBwXyDJiZmXKP9gPamh2 X4UaqbWDiWzVWD7SFkosoOwUtm/4ySQ/33w6fjIWcMnoh0Gb7D3RpgzkuMKkfcAlnHd+YztuX4p2z D0aKD+fdhIR+PVWJb71U4Qlr8XHQ4IOCM9o2gqhK1rREQ2uWo9Zi35mpZr4xV1WSMJtOPYiTHHNOv MY5MBD5lJfKAkVbc8dc0/YfxvIr7cRdJz7uRj3iuafL7/gClcqMGNAakUsG0vj9Jdu1ll8PtPUR80 k8NAO6XV+smJrmwO791XCOTwU/d0Ld03H2xkOXxG3kdGSEnTNp0J5zF2XIV3vUW3Zt96QJ+tr1UBY QhmRwGiHGb1g5A==; Received: from [2600:1700:5650:f790::42] (port=34614 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUw9X-0001hO-QD; Thu, 17 Mar 2022 15:51:19 -0400 From: Roland Winkler To: Lars Ingebrigtsen Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest References: <87ee30vo80.fsf@gnus.org> <874k3w2wqf.fsf@gnu.org> <87sfrgqs9t.fsf@gnus.org> Date: Thu, 17 Mar 2022 14:51:19 -0500 In-Reply-To: <87sfrgqs9t.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 17 Mar 2022 20:43:26 +0100") Message-ID: <87lex81hoo.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54423 Cc: bbdb-user@nongnu.org, Sam Steingold , 54423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Thu, Mar 17 2022, Lars Ingebrigtsen wrote: > 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*". Thanks for the clarification! - This brings me back to what I said: if someone more knowledgable of Gnus internals can translate the above into code for `bbdb-message-header', I'll appreciate that. I can also try do that myself. But then I cannot promise anything. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 16:09:52 2022 Received: (at submit) by debbugs.gnu.org; 17 Mar 2022 20:09:52 +0000 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 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 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 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 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/ To: bug-gnu-emacs@gnu.org From: Sam Steingold Subject: Re: 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> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cancel-Lock: sha1:yP2fSrYBb3Li18VDXnzdfpbQu4A= 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-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > * 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-heade [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=geb-bug-gnu-emacs%40m.gmane-mx.org; ip=209.51.188.17; r=debbugs.gnu.org] -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: submit Cc: bbdb-user@nongnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sds@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) > * 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 17 16:24:47 2022 Received: (at 54423) by debbugs.gnu.org; 17 Mar 2022 20:24:47 +0000 Received: from localhost ([127.0.0.1]:55287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUwfu-0004dS-TW for submit@debbugs.gnu.org; Thu, 17 Mar 2022 16:24:47 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUwft-0004dF-5e for 54423@debbugs.gnu.org; Thu, 17 Mar 2022 16:24:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wpoFshBfgMQftjH09qTs4xJwOVYQaxn1rx4lzURtGWo=; b=hDsNLWIMpxykf6xTr1YATRfBDc 1COeFGahxj+spG6mbBa4nnnIZC9paN8a2BhMYeSiGPKrTGw2UZ5Oo2ud2pJXrEfWTFD8Gy05MAAFw 1uoEllj39oQrPtKQyfJ9/LQ6CHPu7CxMHGNrpq+xTjV1/iYqijqxN7tYaFXy0iik1MOk=; Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUwfj-0003vx-Ce; Thu, 17 Mar 2022 21:24:38 +0100 From: Lars Ingebrigtsen To: Sam Steingold Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest References: <87ee30vo80.fsf@gnus.org> <874k3w2wqf.fsf@gnu.org> <87sfrgqs9t.fsf@gnus.org> Date: Thu, 17 Mar 2022 21:24:34 +0100 In-Reply-To: (Sam Steingold's message of "Thu, 17 Mar 2022 16:09:06 -0400") Message-ID: <87h77wqqd9.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Sam Steingold writes: > The variable gnus-original-article-buffer evaluates to > " *Original Article gmane.comp.security.risks*" Evaluates to that where? It's usually a buffer-local variable. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54423 Cc: bbdb-user@nongnu.org, 54423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Sam Steingold writes: > The variable gnus-original-article-buffer evaluates to > " *Original Article gmane.comp.security.risks*" Evaluates to that where? It's usually a buffer-local variable. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 21 16:26:37 2022 Received: (at submit) by debbugs.gnu.org; 21 Mar 2022 20:26:37 +0000 Received: from localhost ([127.0.0.1]:38510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWObn-0000zG-2K for submit@debbugs.gnu.org; Mon, 21 Mar 2022 16:26:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:36264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWObg-0000z2-Qp for submit@debbugs.gnu.org; Mon, 21 Mar 2022 16:26:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWObg-0007JT-Kj for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 16:26:24 -0400 Received: from ciao.gmane.io ([116.202.254.214]:47608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWObe-0002Bo-Ro for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 16:26:24 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nWObY-0000qa-LG for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 21:26:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Sam Steingold Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest Date: Mon, 21 Mar 2022 16:25:59 -0400 Organization: disorganization Message-ID: References: <87ee30vo80.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cancel-Lock: sha1:8M3XRpp+2mh/uQIxBlazgeNXdT8= 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-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sds@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) > * Lars Ingebrigtsen [2022-03-17 11:59:43 +0100]: > > Sam Steingold writes: > >> In the group gmane.comp.security.risks on server nntp:news.gmane.io open >> an article and type C-d (gnus-summary-enter-digest-group). >> Then enter a message from the summary buffer (e.g., SPC) >> and now (gnus-fetch-original-field "Newsgroups") returns nil instead of >> "gmane.comp.security.risks" as it should. >> The variable gnus-original-article-buffer evaluates to >> " *Original Article gmane.comp.security.risks*" >> and that buffer starts like this: > > I think there's a misunderstanding here -- the "original" that the > function is fetching is the unformatted "original" version of the thing > that's displayed in the *Article* buffer. It has nothing to do with how > the article was sourced (which was via a digest in this case). Nevertheless, the '''unformatted "original" version of the thing that's displayed in the *Article* buffer''' is the `gnus-original-article-buffer' which points to buffer " *Original Article gmane.comp.security.risks*" which _does_ contain all the needed goodies, _BUT_ `gnus-fetch-original-field' does _NOT_ return them. IOW, `mail-fetch-field', called by `message-fetch-field', called by `gnus-fetch-field', called by `gnus-fetch-original-field', returns nil. `gnus-fetch-original-field' calls `gnus-fetch-field' inside `with-current-buffer gnus-original-article-buffer` and the buffer referenced by `gnus-original-article-buffer' _does_ contain the fields in the header. > So this is working as designed. Then how should bbdb extract the "Newsgroups" et al? Thank you! -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com https://iris.org.il https://memri.org https://mideasttruth.com Man has 2 states: hungry/angry and sate/sleepy. Catch him in transition. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 21 20:05:13 2022 Received: (at 54423) by debbugs.gnu.org; 22 Mar 2022 00:05:13 +0000 Received: from localhost ([127.0.0.1]:38777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWS1K-0005LY-Rx for submit@debbugs.gnu.org; Mon, 21 Mar 2022 20:05:13 -0400 Received: from mail-qk1-f181.google.com ([209.85.222.181]:46072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWS1E-0005Kr-Fz for 54423@debbugs.gnu.org; Mon, 21 Mar 2022 20:05:05 -0400 Received: by mail-qk1-f181.google.com with SMTP id h196so12887200qke.12 for <54423@debbugs.gnu.org>; Mon, 21 Mar 2022 17:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:in-reply-to:references:user-agent :return-receipt-to:reply-to:mail-followup-to:date:message-id :mime-version:content-transfer-encoding; bh=6oAOI0j3DPwmu9kFVYEiemHs6PmVuflOMTmfUnrZEoY=; b=V7Rr514HvdG/0KNcwe4DGe9OnS4EtCmb1ojyfxScexo7sm1KXtZ4SEc+RcIGRIBJbU gwFyEVcCaL7goLHyCjWHOgAaz57puK83HrxRQ6XumLAol+8SJ+GFiFHAO5WB0W1ZYgYY BRcI7u9Dh7oqTXVms2d5NDXRH5cEi6pJBWII51OWOda0bsmZJMPsJKYbjFXhA389bt67 U9OGMfARtJIqG6GoEOeM6xy3nxIwzBlfbom232dCmtWwBwdUtEcBN4GI/ejbNPmvYHrL iMmFnsRszTAc8b4KMf0+MOCx/C3rwnfj6L8dKYdn6BRenHazX1KlQFd5H8k8Pjq8fXN0 dwcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :user-agent:return-receipt-to:reply-to:mail-followup-to:date :message-id:mime-version:content-transfer-encoding; bh=6oAOI0j3DPwmu9kFVYEiemHs6PmVuflOMTmfUnrZEoY=; b=wWWsF6AknrC3lVBBIHDTbmU9Qi5mhSKKqwimeDIOlF9UTVFubO7nqIVBD/kLDcmlSP oCKVZwRC79FiIPIj8gfuVbUSY4+2Fe0raGTUlcmxK0CsNFL6HRX3xsWsYuVMLu/mYbfl OMHY6xd/sM2h2n57LmYApGrUcEupSCwzk0FP1YUgi7Hk0cDWRrUIGs8Z9Bf2uv9tI77J X5YdbstTNloZkc58It+ze71DQq078+tnp0iEvzYR0XAfwCjSBinn1Tcg8fqNZ18HaF9D Bn3jKjE99Ne6i+HLOrJCZaRdO/KV2dHFQoYZFycW0G8EtE8s7Z8MxvWyZAdXsVT1cYKn yeJA== X-Gm-Message-State: AOAM530R63FeTfZSwLGSDFQZBd+ojxxsBccG83cx03CYm8LzsuK2K3Wi odT/AHxMOuGd97SD5rLIdQ== X-Google-Smtp-Source: ABdhPJwxZW6eoEB/8sWnEc1EvtVqbt4jsOd2mujPrlOLwhveWat3ukdhRQkd8I38c48eoidv4BDCdA== X-Received: by 2002:a37:2e42:0:b0:67e:6d80:2707 with SMTP id u63-20020a372e42000000b0067e6d802707mr8462884qkh.365.1647907494786; Mon, 21 Mar 2022 17:04:54 -0700 (PDT) Received: from 3c22fb11fdab.ant.amazon.com (pool-108-30-23-113.nycmny.fios.verizon.net. [108.30.23.113]) by smtp.gmail.com with ESMTPSA id v12-20020a05622a130c00b002e1b3ccd9adsm13282361qtk.79.2022.03.21.17.04.54 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Mar 2022 17:04:54 -0700 (PDT) From: Sam Steingold To: Lars Ingebrigtsen Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest In-Reply-To: <87k0cssiaw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 17 Mar 2022 16:35:51 +0100") References: <87ee30vo80.fsf@gnus.org> <87cziku6kv.fsf@gnus.org> <87k0cssiaw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Mail-Followup-To: Lars Ingebrigtsen , 54423@debbugs.gnu.org, ding@gnus.org, bbdb-user@nongnu.org Date: Mon, 21 Mar 2022 20:04:53 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 54423 Cc: bbdb-user@nongnu.org, 54423@debbugs.gnu.org, ding@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sds@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Context (see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D54423): `bbdb-message-header' calls `gnus-fetch-original-field' which, for a digest ("nndoc") group, returns nil for every header. The root of the problem is that `gnus-fetch-original-field' relies on `gnus-original-article-buffer' which is buffer-local: --8<---------------cut here---------------start------------->8--- gnus-original-article-buffer is a variable defined in =E2=80=98gnus.el=E2= =80=99. Its value is " *Original Article nndoc:gmane.comp.security.risks-1023*" Local in buffer *Summary nndoc:gmane.comp.security.risks-1023*; global valu= e is the same. --8<---------------cut here---------------end--------------->8--- (buffer " *Original Article nndoc:gmane.comp.security.risks-1023*" is _empt= y_!) and at the _same_ time (no gnus command executed, just a buffer switch): --8<---------------cut here---------------start------------->8--- gnus-original-article-buffer is a variable defined in =E2=80=98gnus.el=E2= =80=99. Its value is " *Original Article gmane.comp.security.risks*" Local in buffer *Summary gmane.comp.security.risks*; global value is the sa= me. --8<---------------cut here---------------end--------------->8--- Lars suggested that I use this: --8<---------------cut here---------------start------------->8--- (gnus-info-params (gnus-get-info gnus-newsgroup-name)) --8<---------------cut here---------------end--------------->8--- and it appears that the following works: --8<---------------cut here---------------start------------->8--- diff --git a/lisp/bbdb-mua.el b/lisp/bbdb-mua.el index f9d141d..ab3863c 100644 --- a/lisp/bbdb-mua.el +++ b/lisp/bbdb-mua.el @@ -111,7 +111,17 @@ MIME encoded headers are decoded. Return nil if HEADE= R does not exist." ;; `bbdb-select-message' does not get fooled by an ap= parent ;; absence of some headers. ;; See http://permalink.gmane.org/gmane.emacs.gnus.ge= neral/78741 - (eq mua 'gnus) (gnus-fetch-original-field header)) + (eq mua 'gnus) + (or (gnus-fetch-original-field header) + ;; See https://debbugs.gnu.org/cgi/bugreport.cgi?= bug=3D54423 + ;; 'gnus-fetch-original-field' returns nil in nnd= oc groups + ;; (digests) because the 'qgnus-original-article-= buffer' is + ;; empty for the nndoc summary but not for the pa= rent summary. + (and-let* ((i (gnus-get-info gnus-newsgroup-name)) + (p (gnus-info-params i)) + (parent-summary-buffer (cadr (assq 'qu= it-config p)))) + (with-current-buffer parent-summary-buffer + (gnus-fetch-original-field header))))) ((eq mua 'vm) (bbdb/vm-header header)) ((eq mua 'rmail) (with-current-buffer rmail-buffer --8<---------------cut here---------------end--------------->8--- `quit-config' contains the parent summary buffer object. I would rather use that directly that construct the string " *Original Article gmane.comp.security.risks*" (especially since the relevant logic in `gnus-article-setup-buffer' is moderately convoluted). The question is whether this is TRT or there is a better way. Thanks to Lars for his patience, and to everyone else for possible suggestion. --=20 Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.= com https://honestreporting.com https://camera.org http://think-israel.org Money does not bother me at all. In fact, it calms me down. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 22 12:49:22 2022 Received: (at 54423) by debbugs.gnu.org; 22 Mar 2022 16:49:22 +0000 Received: from localhost ([127.0.0.1]:41723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWhhC-0004eq-6t for submit@debbugs.gnu.org; Tue, 22 Mar 2022 12:49:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWhhB-0004ee-1F for 54423@debbugs.gnu.org; Tue, 22 Mar 2022 12:49:21 -0400 Received: from [2001:470:142:3::e] (port=41388 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWhh5-0004kV-OM; Tue, 22 Mar 2022 12:49:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=wNkOhKEhUlwAUwd6hUxi58FQ5z/08S6e4EZMtUUFSvc=; b=bpuCcHQTlN+yn/FYGIJ1 GcO4SYQ+vbujCq8Yx+CMILWnRATf45Rj4fQ/63yIaJg20xQ/QYutx05hJtew+MAN3e84OhFL4RsqW 82+7tpuFcGgcrTZgZUPdONXSyz1NGlmctiFraSus3uxSVhA2CWpPlLNEWWi1fX6Q8mUtNed4Cqy/k HzphUcT++sQC2zRwi0knoCpVYi3DGc35ewlEy0D0BlUuESULXOjQR2JF0TR4JTOFpoqOJSp4rzZOq 5U774CLQBio1K8WXPAUcfiZ2RNSIBGMhCDZXVOZl3uebmihlWv92vh3+bMwzcHHCALwLc6KdJg7Sj wH4MB5InpD0ZFQ==; Received: from lukas.physics.niu.edu ([131.156.224.124]:35744 helo=lukas) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWhh5-00011d-FZ; Tue, 22 Mar 2022 12:49:15 -0400 From: Roland Winkler To: Sam Steingold Subject: Re: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest References: <87ee30vo80.fsf@gnus.org> <87cziku6kv.fsf@gnus.org> <87k0cssiaw.fsf@gnus.org> Date: Tue, 22 Mar 2022 11:49:14 -0500 In-Reply-To: (Sam Steingold's message of "Mon, 21 Mar 2022 20:04:53 -0400") Message-ID: <87mthi7x11.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54423 Cc: bbdb-user@nongnu.org, Lars Ingebrigtsen , 54423@debbugs.gnu.org, ding@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Mon, Mar 21 2022, Sam Steingold wrote: > Lars suggested that I use this: > > (gnus-info-params (gnus-get-info gnus-newsgroup-name)) > > and it appears that the following works: > [snip] > + (and-let* ((i (gnus-get-info gnus-newsgroup-name)) > + (p (gnus-info-params i)) > + (parent-summary-buffer (cadr (assq 'quit-config p)))) > + (with-current-buffer parent-summary-buffer > + (gnus-fetch-original-field header))))) ...Is the (and-let*... needed? Of course, one could wrap all code that way. But and-let* is not even part of Emacs 25 that current BBDB is supposed to support. Also, if the above code should fail in certain cases, it might be an indication that the above code is not yet exactly what is needed so that this should not be swept under the carpet. So I feel that (with-current-buffer (cadr (assq 'quit-config (gnus-info-params (gnus-get-info gnus-newsgroup-name)))) is the better way to go. Am I missing something? Or: If the corner cases when the code can still fail are known and the failure is in that sense intentional, this should be made more explicit in the code. From unknown Tue Jun 17 01:30:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 20 Apr 2022 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator