Gnus development mailing list
 help / color / mirror / Atom feed
From: John Magolske <listmail@b79.net>
To: ding@gnus.org
Subject: writing a function that pipes the html mime part to an external script
Date: Thu, 19 Jan 2017 22:59:24 -0800	[thread overview]
Message-ID: <877f5qi5df.fsf@b79.net> (raw)

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



             reply	other threads:[~2017-01-20  6:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-20  6:59 John Magolske [this message]
2017-01-20 10:41 ` Andreas Schwab
2017-01-20 15:56   ` John Magolske
2017-01-20 17:51     ` Andreas Schwab
2017-01-20 18:24       ` John Magolske
2017-02-02  8:33         ` John Magolske
2017-01-20 18:07     ` Eric Abrahamsen
2017-01-20 20:04       ` John Magolske
2017-01-20 20:34         ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877f5qi5df.fsf@b79.net \
    --to=listmail@b79.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).