Topic RSS
4:00 pm
Hi,
Your extension sounds just like what I need! But It is not clear if the result of running the external program or script can be fed back into Thunderbird to make it do -whatever- to the current message – i.e. the external program is a more advanced filter. I would like to run e-mails I get through a processor, then send them to the trash or flag them for inspection. Am I overlooking something, do I need to read the docs, or is this planned for the future?
thanks,
doug
The ability to use a filter action to run or launch an external program, which are the available custom actions, would be difficult to use as a filter as you need. But there are some other options.
The easiest thing that you could do would be to use the new javascript custom search term. You could define some arbitrary javascript, which will return whether the message matches your criteria or not. Then you can setup a filter action to do whatever you want – trash, flag, etc. Or you could write your own custom search term, following the examples in the extension.
I'm not sure if the message body is going to be available to you though. There's a hook in the custom search term code that will delay the application of the custom search term until after the body is available, just like is done for the new IMAP body filter. But I have not tested it yet, so I don't know if it will actually allow access to the body, particularly because of the async nature of most body processing. But maybe.
If you were quite ambitious, you could write a custom component to override the existing junk mail plugin. That give you full async response possibilities, and is applied quite late in the message processing loop. But that is probably much more involved thatn you are looking at.
Can I programmatically reply to an email after an external program has been executed with the "run file" method? I want to reply to the email received and attach an image that is the output of the external program. Meaning that the external program/script would fire up the procedure.
Is that possible?
Most Users Ever Online: 18
Currently Online:
9 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