LWN.net Logo

Piping to commands

Piping to commands

Posted May 29, 2008 12:24 UTC (Thu) by corbet (editor, #1)
In reply to: The Grumpy Editor reviews Claws Mail by seanodes
Parent article: The Grumpy Editor reviews Claws Mail

I think I expressed my self badly, sorry. What I meant is that you cannot pipe mail to an arbitrary command specified at the time of the action. You can preconfigure as many actions as you like, but, when it comes to be time to run a command on a message, you have to pick one out of those you've set up ahead of time.


(Log in to post comments)

Piping to commands

Posted May 29, 2008 16:22 UTC (Thu) by rfunk (subscriber, #4054) [Link]

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" ""`

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...

Piping to commands

Posted May 30, 2008 10:37 UTC (Fri) by Tet (subscriber, #5433) [Link]

Since claws sits on top of an MH mail store, can you not just have a command that reads the
message directly from the filesystem? It's a bit of a hack, I know, but it should at least
work.

(Happy MH user for nearly 20 years now -- I've been thinking about Claws, but so far, I
haven't felt the need to make the switch)

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