From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51833 Path: main.gmane.org!not-for-mail From: "Taso N. Devetzis" Newsgroups: gmane.emacs.gnus.general Subject: Fetching Article Headers Date: Fri, 25 Apr 2003 20:31:44 -0500 Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051326328 27542 80.91.224.249 (26 Apr 2003 03:05:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Apr 2003 03:05:28 +0000 (UTC) Original-X-From: ding-owner+M374@lists.math.uh.edu Sat Apr 26 05:05:23 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 199G0A-00079c-00 for ; Sat, 26 Apr 2003 05:05:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 199G0U-00024r-00; Fri, 25 Apr 2003 22:05:42 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 199EXa-0001vP-00 for ding@lists.math.uh.edu; Fri, 25 Apr 2003 20:31:46 -0500 Original-Received: (qmail 25580 invoked by alias); 26 Apr 2003 01:31:46 -0000 Original-Received: (qmail 25575 invoked from network); 26 Apr 2003 01:31:46 -0000 Original-Received: from adsl-68-20-229-86.dsl.chcgil.ameritech.net (HELO tarc.tarc.net) (68.20.229.86) by sclp3.sclp.com with SMTP; 26 Apr 2003 01:31:46 -0000 X-Originating-IP: [127.0.0.1] X-TARC-MTA: [tarc.tarc.net] Original-Received: from tarc.tarc.net (localhost [127.0.0.1]) by tarc.tarc.net (8.12.9/8.12.9/toucan) with ESMTP id h3Q1Viq1027990 for ; Fri, 25 Apr 2003 20:31:44 -0500 (CDT) Original-Received: (from devetzis@localhost) by tarc.tarc.net (8.12.9/8.12.9/Submit) id h3Q1ViMs027989; Fri, 25 Apr 2003 20:31:44 -0500 (CDT) Original-To: ding@gnus.org User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:51833 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51833 Greetings, I have written some hooks to snarf and examine article headers (for mail back-ends -- I am using nnml if it matters), but I have a couple of questions regarding the available functions and their behaviour. I can find the headers easily enough as follows: (defun blat-find-header (hdr) (gnus-with-article-headers (message-fetch-field hdr))) This function, however, requires the headers in question to be visible (since it uses *gnus-article-buffer*, I presume). I have had similar results with manually (or using some of the built-ins) searching via *gnus-parse-headers-hook* (wrong concept altogether on my part) and *nnmail-prepare-incoming-header-hook* (same deal). The hooks and functions (such as the *gnus-with-article-headers* macro) that rely on the article buffer will also not work unless the article is selected (and *gnus-article-buffer* is therefore current). *gnus-alter-header-function* seems promising, but I am not convinced that this is its Intended Purpose. I know enough about gnus to be a danger to myself and others, so I would ask your indulgence in pointing me in the right direction to examine (all of) the article headers (for mail back-ends), regardless of whether or not the article is selected (you know, cruise through them in Summary mode). I understand that I may have to manually select the article and parse the headers, but I want to make sure I am not missing an obvious hook. Nothing in the docs springs out at me. Thanks. /taso