homebox icon indicating copy to clipboard operation
homebox copied to clipboard

Use xapian for dovecot fts

Open arodier opened this issue 3 years ago • 5 comments

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.

  • https://packages.debian.org/bullseye/dovecot-fts-xapian
  • https://github.com/grosjo/fts-xapian

arodier avatar Mar 12 '21 06:03 arodier

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.

arodier avatar Mar 21 '21 10:03 arodier

@arodier Supposedly, latest version fixed the case

grosjo avatar Mar 21 '21 11:03 grosjo

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 avatar Mar 21 '21 12:03 arodier

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

arodier avatar Mar 21 '21 12:03 arodier

Fixed in the bullseye branch.

arodier avatar Dec 07 '21 07:12 arodier

Implemented

progmaticltd avatar Dec 24 '22 07:12 progmaticltd