From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67178 Path: news.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-summary-save-in-pipe does not pipe raw article Date: Thu, 24 Jul 2008 11:08:22 -0400 Message-ID: <87d4l3miah.fsf@uwo.ca> References: <87mykes2g8.fsf@newton.gmurray.org.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216912224 3221 80.91.229.12 (24 Jul 2008 15:10:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 15:10:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15637@lists.math.uh.edu Thu Jul 24 17:11:03 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KM2T2-000496-CU for ding-account@gmane.org; Thu, 24 Jul 2008 17:10:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KM2Qt-0005JK-JU; Thu, 24 Jul 2008 10:08:43 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KM2Qr-0005J5-QL for ding@lists.math.uh.edu; Thu, 24 Jul 2008 10:08:41 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KM2Qo-0000xz-6a for ding@lists.math.uh.edu; Thu, 24 Jul 2008 10:08:41 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1KM2R8-00015I-00 for ; Thu, 24 Jul 2008 17:08:58 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KM2Qi-00050e-0Y for ding@gnus.org; Thu, 24 Jul 2008 15:08:32 +0000 Original-Received: from bas3-london14-1096791049.dsl.bell.ca ([65.95.180.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Jul 2008 15:08:32 +0000 Original-Received: from jdc by bas3-london14-1096791049.dsl.bell.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Jul 2008 15:08:32 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: bas3-london14-1096791049.dsl.bell.ca User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:qDgXxP5ZsWO73MZGpYyx5DvFy6U= X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67178 Archived-At: Katsumi Yamaoka writes: > (let* ((pipe (format "cat | /path/to/cmd")) > > (decode (get 'gnus-summary-save-in-pipe :decode)) > (headers (get 'gnus-summary-save-in-pipe :headers)) > (gnus-save-all-headers t) > > ) > (put 'gnus-summary-save-in-pipe :decode nil) > (put 'gnus-summary-save-in-pipe :headers nil) > (unwind-protect > (save-excursion > (dolist (article (gnus-summary-work-articles n)) > (gnus-summary-goto-subject article) > (gnus-summary-save-in-pipe pipe) > )) > (put 'gnus-summary-save-in-pipe :decode decode) > (put 'gnus-summary-save-in-pipe :headers headers))) > (gnus-summary-expand-window)) Maybe all but two or three lines of the above should be made into a function gnus-summary-save-in-pipe-raw? Or maybe the existing function gnus-summary-save-in-pipe should take an optional "raw" argument to get this behaviour? Forcing the caller to jump through the above hoops seems excessive... Dan