Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Damien Collard <damien.collard@distfp.net>
To: info-gnus-english@gnu.org
Subject: Re: Accessing hidden headers
Date: Wed, 10 Apr 2019 07:42:08 +0200	[thread overview]
Message-ID: <m21s2aju1b.fsf@gandi.net> (raw)
In-Reply-To: <87ftqrdow7.fsf@ericabrahamsen.net>


On Mar, avr 09 2019, Eric Abrahamsen wrote:

> You can get it with:
>
> (mail-header-message-id
>  (gnus-data-header
>   (gnus-data-find
>    (gnus-summary-article-number)))

Perfect, thank you!

I need it as part of a treatment, for which point is in the article
buffer, so I'll be using it as follows:

(when (gnus-buffer-live-p gnus-summary-buffer)
  (with-current-buffer gnus-summary-buffer
    <...your code...>))

> While point is on the message in question. If there's a more direct way
> I'd like to know about it!

Way more direct and way cleaner than what I had tried!

Thanks,

Damien


  reply	other threads:[~2019-04-10  5:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-09  7:26 Damien Collard
2019-04-09  7:31 ` Alberto Luaces
2019-04-09  8:05   ` Damien Collard
2019-04-09 18:17     ` Eric Abrahamsen
2019-04-10  5:42       ` Damien Collard [this message]
2019-04-10  2:55 ` 황병희
2019-04-10  5:49   ` Damien Collard
2019-04-10  5:55     ` Damien Collard
2019-04-10  5:50   ` Damien Collard

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=m21s2aju1b.fsf@gandi.net \
    --to=damien.collard@distfp.net \
    --cc=info-gnus-english@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.
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 NNTP newsgroup(s).