LWN.net Logo

Advertisement

Front, Kernel, Security, Distributions, Development. See your byline here on LWN.net.

Advertise here

Piping to commands

Piping to commands

Posted May 29, 2008 16:22 UTC (Thu) by rfunk (subscriber, #4054)
In reply to: Piping to commands by corbet
Parent article: The Grumpy Editor reviews Claws Mail

I think you could construct something like that by creating an action that 
pipes into a shell script that calls kdialog (or a similar tool).  Maybe 
something like this:

#!/bin/sh
exec `kdialog --inputbox "Enter command to pipe into" ""`


(Log in to post comments)

Piping to commands

Posted May 29, 2008 16:26 UTC (Thu) by corbet (editor, #1) [Link]

Actually, Claws Mail has a way to accept a string which then gets piped into the canned command. So one could write a script which reads the string and interprets it as a command to be run with the file containing the email as input. Should work, I just need to mess with it some. But it should be easier...

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds