Legatus wrote:
On Jan 6, 2008 10:09 PM, Ralph Shumaker <[EMAIL PROTECTED]> wrote:

Anyone know of a way to get thunderbird to launch a separate program
after each time I send an email?  Alternatively, is there anything that
can monitor thunderbird's sending, and that thing launch a separate
program?



Not sure exactly what you are trying to do, but based on your short
explanation I would run a local MTA. That MTA can be configured to do
whatever you want with messages. Postfix and Sendmail both have mechanisms
to run a script on a message. If you don't want to alter the message, then
have your script pass the message along unchanged, and run what you want to
run before it is passed on.

I have zero experience with MTAs.  Are they difficult to set up?

If thunderbird can be made to execute a script after _starting_ and email, that would be fine also.

As long as it doesn't try to do it just *before* starting a new email. kbuildsycoca sometimes takes up to a minute to execute on my machine. That's to long to wait from the time I tell thunderbird "start new message" or "reply to this email" to the time it gives me the window.

I just want to run a tiny script whose *main* function is to run "ksig --random" into a file that thunderbird then picks up and uses for my sig line the next time I start an email.

(I forgot *again* to click the icon that launches that script before starting this email. My sig lines get stale because I keep forgetting.)

Here's the script (if anyone cares):
#!/bin/bash
echo Ralph>~/ksig.random
echo -e >>~/ksig.random
echo -------------------->>~/ksig.random
ksig --random >> ~/ksig.random
cat ~/ksig.random
sleep 1m

I created an icon launcher which opens a terminal window to run the script. If I don't like the one it chooses, I can just launch it again. I usually don't do this unless I want to use one in particular. But my sig file is getting large enuf now that it is no longer practical to do it that way.

I don't really care for the idea of cron doing it once every minute because there are long periods of time where I am not running email. But I'd rather not have a stale sig line either.

I guess another way is if there is, while thunderbird is running, using the command line to tell thunderbird to start a new email or to reply to the one currently displayed. If I could do that, then I could set up two little icons on the gnome menu bar to perform that and run the script right after.

If I can get this going the way I'd like it, I would even want a way to tell the script to run in the background, perhaps even at a low priority.



--
Ralph

--------------------
Java is the second worst programming language. All the rest are tied for first.
--Stewart Stremler


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to