From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87337 Path: news.gmane.org!.POSTED!not-for-mail From: John Magolske Newsgroups: gmane.emacs.gnus.general Subject: writing a function that pipes the html mime part to an external script Date: Thu, 19 Jan 2017 22:59:24 -0800 Message-ID: <877f5qi5df.fsf@b79.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1484897106 20874 195.159.176.226 (20 Jan 2017 07:25:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2017 07:25:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M35557@lists.math.uh.edu Fri Jan 20 08:25:02 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUTZD-0004cn-Mf for ding-account@gmane.org; Fri, 20 Jan 2017 08:24:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cUTYF-0001XS-CV; Fri, 20 Jan 2017 01:23:59 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cUTYD-0001Wt-Uy for ding@lists.math.uh.edu; Fri, 20 Jan 2017 01:23:57 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cUTYC-0002Jx-0w for ding@lists.math.uh.edu; Fri, 20 Jan 2017 01:23:57 -0600 Original-Received: from mail6.webfaction.com ([74.55.86.74] helo=smtp.webfaction.com) by quimby.gnus.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1cUTY9-0003DR-MJ for ding@gnus.org; Fri, 20 Jan 2017 08:23:54 +0100 Original-Received: from localhost (50-0-151-112.dsl.dynamic.fusionbroadband.com [50.0.151.112]) by smtp.webfaction.com (Postfix) with ESMTP id 6A820219E586 for ; Fri, 20 Jan 2017 06:58:57 +0000 (UTC) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87337 Archived-At: I'm trying to write a function that would pipe the html mime part of an article to a shell script for further processing. I can do eval-expression and enter this at the Eval: prompt: (gnus-article-pipe-part 1) Then this appears in the message body: =>. text/html] and on the minibuffer line: Shell command on MIME part: where I enter the absolute path to the shell script I want the html part of this message piped to: Shell command on MIME part: ~/bin/pipe_to_tmp and everything works as intended. But I'd like to do away with that last step of having to manually enter the shell command, somehow placing that "~/bin/pipe_to_tmp" directly into a function that could be mapped to a key binding. I've been messing around with mm-pipe-part but haven't found a way to do this. Any suggestions? Regards, John -- John Magolske http://b79.net/contact