all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: D <d.williams@posteo.net>
To: emacs-devel@gnu.org
Subject: Gnus: (documentation) bug? gnus-extra-headers
Date: Fri, 14 May 2021 22:56:48 +0000	[thread overview]
Message-ID: <479d6005-75ab-543b-d5a6-2560fc018adc@posteo.net> (raw)

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.



             reply	other threads:[~2021-05-14 22:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-14 22:56 D [this message]
2021-05-16 14:12 ` Gnus: (documentation) bug? gnus-extra-headers Lars Ingebrigtsen
2021-05-16 14:43   ` D
2021-05-17 13:51     ` Lars Ingebrigtsen
2021-05-17 13:56       ` Andreas Schwab
2021-05-17 14:27         ` Lars Ingebrigtsen
2021-05-17 17:43           ` D

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

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

  git send-email \
    --in-reply-to=479d6005-75ab-543b-d5a6-2560fc018adc@posteo.net \
    --to=d.williams@posteo.net \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.