unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Sam Steingold <sds@gnu.org>
To: 54423@debbugs.gnu.org
Subject: bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest
Date: Mon, 21 Mar 2022 16:25:59 -0400	[thread overview]
Message-ID: <lzpmmfhx2g.fsf@3c22fb11fdab.ant.amazon.com> (raw)
In-Reply-To: <lzr172szfa.fsf@3c22fb11fdab.ant.amazon.com>

> * Lars Ingebrigtsen <ynefv@tahf.bet> [2022-03-17 11:59:43 +0100]:
>
> Sam Steingold <sds@gnu.org> 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.






      parent reply	other threads:[~2022-03-21 20:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-16 15:13 bug#54423: 29.0.50; gnus-fetch-original-field returns nil in digest Sam Steingold
2022-03-17 10:59 ` Lars Ingebrigtsen
2022-03-17 12:06   ` Lars Ingebrigtsen
2022-03-17 15:24     ` Sam Steingold
2022-03-17 15:35       ` Lars Ingebrigtsen
2022-03-22  0:04         ` Sam Steingold
     [not found]         ` <lzfsnaj1i2.fsf@3c22fb11fdab.ant.amazon.com>
2022-03-22 16:49           ` Roland Winkler
2022-03-17 15:29   ` Sam Steingold
     [not found]   ` <lzilsctx5r.fsf@3c22fb11fdab.ant.amazon.com>
2022-03-17 19:40     ` Roland Winkler
     [not found]     ` <874k3w2wqf.fsf@gnu.org>
2022-03-17 19:43       ` Lars Ingebrigtsen
2022-03-17 19:51         ` Roland Winkler
2022-03-17 20:09         ` Sam Steingold
2022-03-17 20:24           ` Lars Ingebrigtsen
2022-03-21 20:25   ` Sam Steingold [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=lzpmmfhx2g.fsf@3c22fb11fdab.ant.amazon.com \
    --to=sds@gnu.org \
    --cc=54423@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).