grosjo / fts-xapian

Dovecot FTS plugin based on Xapian
GNU Lesser General Public License v2.1
91 stars 19 forks source link

Does not index content-type #161

Closed exi closed 1 month ago

exi commented 2 months ago

I configured my dovecot with fts_header_includes = * to force indexing of all headers.

However my logs for xapian indexing are full of:

Info: FTS Xapian: New part (Header=Content-Type,Type=(null),Disposition=(null))
Info: FTS Xapian: Unknown header 'contenttype' of part
Info: FTS Xapian: fts_backend_xapian_update_set_build_key
Info: FTS Xapian: New part (Header=MIME-Version,Type=(null),Disposition=(null))
Info: FTS Xapian: Unknown header 'mimeversion' of part
Info: FTS Xapian: fts_backend_xapian_update_set_build_key

This suggests (also while reading the code) that it is not indexing anything beyond a few headers hard-coded in the fts-xapian code.

However many mail clients (Roundcube for example) need for example the Content-Type header indexed in order to support the "Show only mails with attachments" features.

grosjo commented 1 month ago

Please check latest git

exi commented 1 month ago

Awesome, thank you for the change!