expression-search icon indicating copy to clipboard operation
expression-search copied to clipboard

Conversion to new Mailextension or Webextensions Experiments API

Open riedel opened this issue 5 years ago • 4 comments

Is this even feasible??

Addressing TB78 Mailextension would mean a rewrite and I am pretty sure that currently some stuff is not yet working due to the current API. Can someone confirm that eg. date filtering would not work easily.

I thing the quickfilter function comes would be the easiest to go for but only the query function exposes enought expressiveness but does not interact with the MailTabs i think.

Or would WebExtension Experiments be the way to go?

I have actually never seen a custom search field in a webextension, but I might be ignorant and there is an API.

Any thoughts on the migration?

riedel avatar Feb 03 '20 20:02 riedel

The Mailextension API seems pretty unusable in its current state. Filed a bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=1614916 .

riedel avatar Feb 12 '20 12:02 riedel

Hi @riedel, do you know if anything changed with the Thunderbird 78 API that might make porting expression-search to Mailextension or Webextensions Experiments easier? I'm not experienced with Thunderbird add-on development, but I do know some Javascript and I depend a lot on this add-on, so I want to explore how feasible it is to port it.

EaterOA avatar Aug 03 '20 00:08 EaterOA

FWIW the TB78 didn't seem much different to me from TB68, so I looked into Experiments a bit. Working backwards from mailTabs.setQuickFilter, I landed on MessageTextFilter. The comments seem to suggest that different filterers (e.g. TagFacetingFilter) can be implemented by extensions... although this is already deep in the realm of Experiments and not regular Mailextensions.

EDIT: I hadn't realized this seems to be exactly what expression-search is already doing for <=TB68. It's just no longer accessible from TB78 onwards via Mailextension. I suspect it may be possible to basically declare the ExpressionSearchFilter.js as an Experiments API, and regain the same functionality without extensive rewrite.

EaterOA avatar Aug 03 '20 07:08 EaterOA

The best solution will be a native TB support, please add your vote here https://bugzilla.mozilla.org/show_bug.cgi?id=538821

malix0 avatar Aug 08 '20 23:08 malix0