RealRaven2000 / FiltaQuilla

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

Is it possible to get the BODY of an email in a Filter? #151

Open dmcichy opened 2 years ago

dmcichy commented 2 years ago

I have been scouring the internet trying to find a way to pass on the SUBJECT and BODY of an inbound email via a filter to a device messaging service (Pushover). I have tried coding it myself in javascript (epic fail). I have tried @BODY@ in RUN PROGRAM (which is of course non-existent). And, I have tried @PROPERTY@somedbproperty@ which, of course, uses .getStI have been scouring the internet trying to find a way to pass on the SUBJECT and BODY of an inbound email via a filter to a device messaging service (Pushover). I have tried coding it myself in javascript (epic fail). I have tried @BODY@ in RUN PROGRAM (which is of course non-existent). And, I have tried @PROPERTY@somedbproperty@ which, of course, uses .getStringProperty(“somedbproperty”) but cannot find a property which returns the MESSAGE BODY.

Anyone have a bright idea on how to make this happen? I've even looked at AddOns that "resubmit" and original email to a different destination address, but cannot find one that I can invoke from a Filter.

Thanks to anyone who can think of a way to make this happen.ringProperty(“somedbproperty”) but cannot find a property which returns the MESSAGE BODY.

Anyone have a bright idea on how to make this happen? I've even looked at AddOns that "resubmit" and original email to a different destination address, but cannot find one that I can invoke from a Filter.

Thanks to anyone who can think of a way to make this happen.

RealRaven2000 commented 2 years ago

I think you might need to write an Add-on for this purpose that is specifically written to interface with the service. The problem is that it is going to have to be an experimental Add-on, and AFAIK you wouldn't be able to submit it to be hosted on addons.thunderbird.net - as they only accept legacy Add-ons that have been converted to experiments, and not new ones.

I am not sure that you could interface with services in a JavaScript action, but obviously that would be logical first the low effort attempt. How about you ask on the matrix chat: https://matrix.to/#/#tb-addon-developers:mozilla.org