From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/808 Path: news.gmane.org!not-for-mail From: Oystein Viggen Newsgroups: gmane.emacs.gnus.user Subject: Re: getting at article headers Date: Mon, 22 Jul 2002 21:27:02 +0200 Organization: Tihlde Message-ID: <037kjny35l.fsf@msgid.viggen.net> References: <033cuc0z6n.fsf@msgid.viggen.net> <87d6tf6gic.fsf@mail.paradoxical.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667715 8497 80.91.229.2 (31 Jan 2006 00:35:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:35:15 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:08 2006 Original-Path: quimby.gnus.org!lackawana.kippona.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feed.news.nacamar.de!uninett.no!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Sender: oysteivi@tihlde.org Original-NNTP-Posting-Host: colargol.tihlde.hist.no Original-X-Trace: dolly.uninett.no 1027366231 9299 158.38.48.10 (22 Jul 2002 19:30:31 GMT) Original-X-Complaints-To: news-abuse@uninett.no Original-NNTP-Posting-Date: Mon, 22 Jul 2002 19:30:31 +0000 (UTC) X-URL: http://www.tihlde.org/~oysteivi/ X-Phone-Number: +47 97 11 48 58 X-Address: Tordenskioldsgt. 12, 7012 Trondheim, Norway X-MSMail-Priority: High X-Face: R=b-K(^1#]KR?6moG:Wrc/t>p)?p`?bgHg36M3hZ>^?\akat3!nX*8xZpIvZrI#]ZzN`I<+ L{8#pdH*1SOB$Zu-_e1<>iE$5cGiLhRem.ct.QtE=&v@9\S_6slX4='![%,F3^&ed5Y5g-#!N'Lr[s &Gfs3c}pYq^oUo{8l-qD87s[P1~+f([41~gD}Pj)nX|KcVv;tF4IIx%pnN\UL|SNT User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.1 (Capitol Reef, i386-debian-linux) Cancel-Lock: sha1:+SDarR0DPwnrlJyE+iXgcNnPC7A= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:948 Original-Lines: 31 X-Gnus-Article-Number: 948 Tue Jan 17 17:28:08 2006 Xref: news.gmane.org gmane.emacs.gnus.user:808 Archived-At: * [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.