From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45512 Path: main.gmane.org!not-for-mail From: Vin Shelton Newsgroups: gmane.emacs.gnus.general Subject: Piping article + header Date: Wed, 03 Jul 2002 12:40:16 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <545vg7wwyrz.fsf@icd.teradyne.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025714471 20729 127.0.0.1 (3 Jul 2002 16:41:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 3 Jul 2002 16:41:11 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17PnBm-0005OD-00 for ; Wed, 03 Jul 2002 18:41:10 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17PnBM-0003uU-00; Wed, 03 Jul 2002 11:40:44 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 03 Jul 2002 11:41:06 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id LAA09430 for ; Wed, 3 Jul 2002 11:40:53 -0500 (CDT) Original-Received: (qmail 18020 invoked by alias); 3 Jul 2002 16:40:21 -0000 Original-Received: (qmail 18015 invoked from network); 3 Jul 2002 16:40:21 -0000 Original-Received: from rent.teradyne.com (198.51.251.8) by gnus.org with SMTP; 3 Jul 2002 16:40:21 -0000 Original-Received: from chorus.teradyne.com (chorus.teradyne.com [131.101.1.195]) by rent.teradyne.com (8.8.8+Sun/8.8.8) with ESMTP id MAA01586 for ; Wed, 3 Jul 2002 12:42:18 -0400 (EDT) Original-Received: from kiki.icd.teradyne.com (kiki.icd.teradyne.com [131.101.10.126]) by chorus.teradyne.com (8.8.8+Sun/8.7.1) with ESMTP id MAA28841 for ; Wed, 3 Jul 2002 12:40:18 -0400 (EDT) Original-Received: from denver.icd.teradyne.com (denver [131.101.18.106]) by kiki.icd.teradyne.com (8.9.3+Sun/8.9.3) with SMTP id MAA25695 for ; Wed, 3 Jul 2002 12:40:27 -0400 (EDT) Original-Received: by denver.icd.teradyne.com (SMI-8.6/SMI-SVR4) id MAA16029; Wed, 3 Jul 2002 12:40:16 -0400 Original-To: ding@gnus.org Original-Lines: 34 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45512 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45512 I need to be able to save an article as a file with a name based on its message-id. In order to do this, I wrote a simple filter (in *gasp* perl - I know, I should probably turn in my XEmacs decoder ring for not using elisp, but I thought it would be cool to have something that worked from the shell command line). The filter extracts the message-id from the header and saves the message to a file name based on the message-id. This works fine standalone, but when I try to use gnus-summary-pipe-output, the Message-id: header has been elided from the article. If I add 'Message-id' to gnus-visible-headers, my filter works fine, but that's a pretty yucky solution, 'cause most of the time I don't want to see the message-id. Basically what I need is a way to make all headers visible before calling gnus-summary-pipe-output. I tried using advice to do this: (defadvice gnus-summary-pipe-output (around acs::show-all-headers-visible activate) "Make all headers visible before piping the message to a program" (let ((gnus-show-all-headers t)) ad-do-it)) but it appears that gnus-show-all-headers must be non-nil _at the time the article is displayed_. Essentially, my advice had no effect. Is there any way to make the entire article (header + body) available to my filter? Does anyone have any thoughts, comments or suggestions? TIA, Vin -- In a minute there is time For decisions and revisions which a minute will reverse. T.S. Eliot [URL: http://www.cs.amherst.edu/~ccm/prufrock.html]