RealRaven2000 / quickFilters

Thunderbird Add-on: quickFilters
http://quickfilters.quickfolders.org/
Other
46 stars 11 forks source link

Raw message source filter #137

Open informatorius opened 1 year ago

informatorius commented 1 year ago

Would it be possible for FiltaQuilla Thunderbird Addon to have a filter with input raw message source? Like shown in "Thunderbird->Views->Message Source"?

Or does this need support from Thunderbird?

This would be helpful for filtering of Spam having special strings in raw message source and not in Header or Body

RealRaven2000 commented 1 year ago

I would have to look into it - but I do some recursive parsing of mime parts (body parts only) with the regex body search term.

informatorius commented 1 year ago

For some Spam emails the body parts is not enough. Because strings maybe are put after body which you only see in raw message source. Thunderbird seems to not present these strings as part of body.

RealRaven2000 commented 1 year ago

So the main problem with streaming the message is that future versions may not provide synchronous ways of doing this. They actually are removing the sync-stream-listener object, and it will be replaced with an async function. Async functions (that return values) can only be called from other asynchronous functions, and the Thunderbird search terms are currently implemented as synchronous.

At some stage I am hoping that Thunderbird will support asynchronous filters, I will have a talk with one of their engineers on the Add-on Developers meeting next Monday to see whether there is a chance for that.