slusarz / dovecot-fts-flatcurve

Dovecot FTS Flatcurve plugin (Xapian)
https://slusarz.github.io/dovecot-fts-flatcurve/
GNU Lesser General Public License v2.1
40 stars 8 forks source link

doveadm fts-flatcurve: Fix segmentation fault if plugin is loaded but not enabled #39

Closed edieterich closed 1 year ago

edieterich commented 1 year ago

doveadm fts-flatcurve segfaults if the plugin is loaded but not enabled:

mail_plugins = $mail_plugins fts_flatcurve
plugin {
  fts = squat
}

doveadm fts-flatcurve check -u ewald INBOX
Segmentation fault

With this patch:

doveadm fts-flatcurve check -u ewald INBOX
doveadm(ewald): Error: fts-flatcurve not enabled
slusarz commented 1 year ago

Thanks for the patch!