Topic RSS
11:52 am
Hi,
I would like to be able to launch a file based on a filter that takes the subject and/or body and passes it as a parameter to a the file to be launched, i.e. a python script or shell script.
My ultimate goal is to send an item to the OmniFocus Inbox from Thunderbird. There is a rule that I can use for Mail.app that does this with applescript as well. I just would like to keep using TB. Is there a way to do this, or will there be in the future?
Thanks,
Robert
There has been a lot of interest in the ability to send parameters to the launch file action. I can also see that its use is limited without such parameters. So I will at least investigate how hard this is to do, and try to include something in the official release of FiltaQuilla. I will generally do a new release with each official release of the TB product. Since TB 3 beta2 is in its final stages, I guess that is pretty soon!
Looking briefly at the Mozilla documentation, it appears there is an nsIProcess interface and component that should be able to accomplish this. I'll play with that some, and see how it works. Probably what I need to do is to allow some replaceable parameters in the arguments sent to the program, maybe something like @SUBJECT@ @FROMNAME@ @FROMADDRESS@ etc.
The @AUTHOR@ parameter gives you the value of the "author" that is in the message summary header (actually hdr.mime2DecodedAuthor). That is set by core code here http://mxr.mozilla.org/comm-ce…..x.cpp#1297
That is not the same necessarily as one of the standard email headers like SENDER or FROM. The core code first tries to set it to from, if that is missing it uses sender, if that is missing it uses the envelope from.
Most Users Ever Online: 18
Currently Online:
7 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Member Stats:
Guest Posters: 130
Members: 565
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 7
Topics: 231
Posts: 802
Newest Members: Matteo, p.dobrogost, gaute, Mythobeast, terry, Livraria Notre Dame
Moderators: rkent (323)
Administrators: rkent (323)
Log In
Register
Members
Home
Add Reply
Add Topic
Quote
Offline


Recent Comments