progmaticltd / homebox

A set of ansible scripts to build a personal mail server / private cloud / etc.
https://homebox.space/
GNU General Public License v3.0
461 stars 52 forks source link

Use xapian for dovecot fts #359

Closed arodier closed 1 year ago

arodier commented 3 years ago

Starting with Debian buster, dovecot supports xapian indexing engine for full text search. I think it is more up to date and more secure than using solr inside a java engine.

arodier commented 3 years ago

For the attachments, we have to wait for this bug to be fixed: https://github.com/grosjo/fts-xapian/issues/68 Otherwise, the backend seems to work fine.

grosjo commented 3 years ago

@arodier Supposedly, latest version fixed the case

arodier commented 3 years ago

I can tell the version in Bullseye does not, from the logs:

doveadm(camille): Info: FTS Xapian: New part (Header=(null),Type=text/csv,Disposition=attachment; filename="file.csv") doveadm(camille): Info: FTS Xapian: Skipping part of type 'text/csv' and disposition 'attachment; filename="file.csv"' doveadm(camille): Info: FTS Xapian: fts_backend_xapian_update_set_mailbox doveadm(camille): Info: FTS Xapian: Unset box 'INBOX' (c0d4e304584e5460dae30000075d7e67)

arodier commented 3 years ago

Bug report filled on Debian Bullseye: https://bugs.debian.org/985654

arodier commented 2 years ago

Fixed in the bullseye branch.

progmaticltd commented 1 year ago

Implemented