From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87340 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.gnus.general Subject: Re: writing a function that pipes the html mime part to an external script Date: Fri, 20 Jan 2017 18:51:52 +0100 Message-ID: <8760l9aabr.fsf@linux-m68k.org> References: <877f5qi5df.fsf@b79.net> <87efzy9fnw.fsf@linux-m68k.org> <87r33xhgic.fsf@b79.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1484934767 10606 195.159.176.226 (20 Jan 2017 17:52:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2017 17:52:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) Cc: ding@gnus.org To: John Magolske Original-X-From: ding-owner+M35560@lists.math.uh.edu Fri Jan 20 18:52:41 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 1cUdMa-0001qx-2g for ding-account@gmane.org; Fri, 20 Jan 2017 18:52:36 +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 1cUdM1-0006nx-L1; Fri, 20 Jan 2017 11:52:01 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cUdLz-0006nJ-14 for ding@lists.math.uh.edu; Fri, 20 Jan 2017 11:51:59 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cUdLw-0000ny-R4 for ding@lists.math.uh.edu; Fri, 20 Jan 2017 11:51:58 -0600 Original-Received: from mail-out.m-online.net ([212.18.0.10]) by quimby.gnus.org with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1cUdLv-0001qH-Cz for ding@gnus.org; Fri, 20 Jan 2017 18:51:55 +0100 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3v4pDp5HpLz3hmRc; Fri, 20 Jan 2017 18:51:54 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3v4pDp29Vyzvkv4; Fri, 20 Jan 2017 18:51:54 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 79AIgBWfrCfM; Fri, 20 Jan 2017 18:51:53 +0100 (CET) X-Auth-Info: CPVA91a1xhnq4mUY78/Wegup6gx7XHasPuHJtFmNi+k8kdNpYtHgcO5j2dz7Q3Qq Original-Received: from igel.home (ppp-88-217-11-185.dynamic.mnet-online.de [88.217.11.185]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 20 Jan 2017 18:51:53 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id D53C02C42A8; Fri, 20 Jan 2017 18:51:52 +0100 (CET) X-Yow: Catsup and Mustard all over the place! It's the Human Hamburger! In-Reply-To: <87r33xhgic.fsf@b79.net> (John Magolske's message of "Fri, 20 Jan 2017 07:56:27 -0800") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87340 Archived-At: On Jan 20 2017, John Magolske wrote: > Andreas Schwab writes: >> On Jan 19 2017, John Magolske wrote: >> >>> 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? >> >> Write a function that calls mm-pipe-part directly. > > This is where I'm stuck... I believe there should be something like > > (mm-pipe-part HANDLE "~/bin/pipe_to_tmp") > > in the function, but I can't figure out exactly what should go in the > place of HANDLE here. The same that gnus-article-part-wrapper would pass. Or pass gnus-article-part-wrapper a function that calls mm-pipe-part like above. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."