Is there an e-mail client under Ubuntu dekstop with GUI, which will let me create a rule based on subject/body and run python script? Please don't recommend procmail as it doesn't have gui.

link|improve this question

1  
What do you want it to do? – soandos Aug 8 '11 at 2:52
The script is doing some long time fetching/processing from web. But I don't think it matters. What really matters is that I want to leave my ubuntu box open with this e-mail client while I don't have remote access to it and remotely run that script by sending e-mail. – Pablo Aug 8 '11 at 3:04
feedback

1 Answer

up vote 2 down vote accepted

KMail supports running Python scripts (or any arbitrary command) based on filters. It even supports piping the message to programs, so your Python script can perform certain actions based on its contents.

KMail Add Filter screen

To install it, look for KMail in the Software Center or Synaptic or run:

sudo apt-get install kmail
link|improve this answer
thanks. Do you know if the command is long running script, then it can be executed independently on KMail, will not freeze it and closing KMail will not affect the script? – Pablo Aug 8 '11 at 7:01
Unfortunately, it does block on it. Breaking away from it is trival, though: just pretend it's a daemon. There are many modules that do it for you, but doing it yourself is rather simple too. – Patches Aug 8 '11 at 7:45
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.