RealRaven2000 / FiltaQuilla

Adds many new mail filter actions to Thunderbird
http://quickfilters.quickfolders.org/filtaquilla.html
GNU General Public License v3.0
88 stars 17 forks source link

run webhook #157

Open swartzieee opened 2 years ago

swartzieee commented 2 years ago

Hello -

I would like to run code to call a webhook from an example in the link below, is it possible with your add-on?

https://www.thomptronics.com/about/notify-me

Thank you for the consideration.

RealRaven2000 commented 2 years ago

I had a brief look, am a bit rusty with REST applications. One of the options is actually opening a URL, so maybe we can investigate this. Generally anything I can do with plain JavaScript (not involving frameworks such as jquery / node.js) would be the most desirable solution. If you can supply some boilerplate (JS) code that would work from a webpage as a starting point I can integrate an experiment and give you a prototype for testing.

swartzieee commented 2 years ago

I’ll look for a simple js example. Is it possible to add an option to run terminal/command line ? That way I can run anything i want, in theory.

RealRaven2000 commented 2 years ago

I’ll look for a simple js example. Is it possible to add an option to run terminal/command line ? That way I can run anything i want, in theory.

Yes, that already exists:

image

there is a "help" button with documentation of what parameters can be passed on as part of the command line.