From: Oystein Viggen <oysteivi@tihlde.org>
Subject: Re: getting at article headers
Date: Mon, 22 Jul 2002 21:27:02 +0200 [thread overview]
Message-ID: <037kjny35l.fsf@msgid.viggen.net> (raw)
In-Reply-To: <87d6tf6gic.fsf@mail.paradoxical.net>
* [Josh Huber]
> (set-buffer gnus-original-article-buffer)
> (mail-fetch-field "X-Report-Spam")
That seems to be the exact thing I was looking for.
> What were you doing?
Worse:
...
(gnus-summary-select-article-buffer)
(gnus-summary-toggle-header 1)
(goto-char (point-min))
(search-forward "X-Report-Spam: ")
(w3-fetch (buffer-string (point) (point-at-eol)))
So I basically implemented mail-fetch-field myself, and badly. (assumes
that the header is all in one line). I avoided the original article
buffer for various other reasons that seemed like a good idea at the
time.
By the way, I noticed that w3 would render html spam, which I don't
particularly like. What do you do to hit the URL? I thought about wget
in the background, but at least in the beginning I would like to see
stuff actually happen. Kind of a "flash a LED at the user to keep him
happy" sort of thing..
Oystein
--
If it ain't broke, don't break it.
parent reply other threads:[~2002-07-22 19:27 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <87d6tf6gic.fsf@mail.paradoxical.net>]
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=037kjny35l.fsf@msgid.viggen.net \
--to=oysteivi@tihlde.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).