Forum

Share

Please consider registering
guest

Log In RegisterMembers
Or log in with

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Result of executing a external program?
December 8, 2009
4:00 pm
doug
Guest

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

Share
December 8, 2009
11:30 pm
Admin
Forum Posts: 323
Member Since:
July 12, 2008
Offline

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.

Share
November 7, 2011
2:40 pm
Member
Forum Posts: 4
Member Since:
November 7, 2011
Offline

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?

Share
Forum Timezone: UTC -8

Most Users Ever Online: 18

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

bobkatz: 8

BigMike: 8

t2m: 7

zabolyx: 7

taa: 6

onlyme: 6

Member Stats:

Guest Posters: 130

Members: 565

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 7

Topics: 231

Posts: 802

Moderators: rkent (323)

Administrators: rkent (323)