mailpile / moggie

A free & open modern, fast email client with user-friendly encryption and privacy features
https://mailpile.is
Other
72 stars 1 forks source link

Expose search engine to external tools #2

Open BjarniRunar opened 2 years ago

BjarniRunar commented 2 years ago

This issue tracks the milestones defined in the "Mailpile Search Integration" Project which is supported by a grant from NLNet and NGI0 Discovery.

BjarniRunar commented 2 years ago

The search engine and partitioning work is (modulo bugs and future refactoring) complete.

Some notable milestones along the way:

BjarniRunar commented 2 years ago

There are now tools and docs explaining how to grant restricted access to the moggie search engine:

More relevant commits:

BjarniRunar commented 2 years ago

There is now enough of a web interface exposed to allow 3rd party tools to search, display results, and display individual messages.

The search integration docs have been updated with a section aimed at developers: https://github.com/BjarniRunar/moggie/blob/master/docs/search-integration.md#6-notes-for-developers

Relevant commits:

BjarniRunar commented 2 years ago

The proof-of-concept SearX plugin is here: https://github.com/BjarniRunar/moggie/blob/master/contrib/searx/moggie.py

It works! However there does seem to be a bug in moggie's web server causing it to fail when Firefox connects to it directly (when a user clicks a search result in SearX). Reloading the blank page seems to suffice? I'll have to track that down, but it's not directly related to this.

BjarniRunar commented 2 years ago

As a first draft, this is complete. Leaving open, because the API should be reviewed and documentation improved further once all the notmuch #3 work is complete.