Skip to content

Conversation

@carlsmedstad
Copy link

Hey 👋

We're in the process of upgrading the dovcot package for Arch Linux from version 2.3.21.1 to 2.4.1, so I've spent some time on trying to make this plugin compatible.

Notable adaptations:

  • Removed FTS_LOOKUP_FLAG_NO_AUTO_FUZZY and related code entirely. Dropped from
    dovecot in:
    dovecot/core@8745b77

  • Remove usage of fts_mail_user_deinit(). Dropped from dovecot in:
    dovecot/core@0cfb947

  • Migrate settings to new layout, and remove bespoke settings initalization
    function fts_elastic_plugin_init_settings().

  • Adapt to new event-based plugin interface.

Not very familiar with either dovecot or C, so not 100% sure of what I'm doing, but this at least builds and serves as a starting point. I did not consider compatibility with dovecot older than 2.4, so a few ifdefs might need to be added to fix that.

Cheers!

CC: @hashworks @foxxx0 @grawlinson

Notable adaptations:

- Removed `FTS_LOOKUP_FLAG_NO_AUTO_FUZZY` and related code entirely. Dropped
  from dovecot in:
  dovecot/core@8745b77

- Remove usage of fts_mail_user_deinit(). Dropped from dovecot in:
  dovecot/core@0cfb947

- Migrate settings to new layout, and remove bespoke settings initalization
  function `fts_elastic_plugin_init_settings()`.

- Adapt to new event-based plugin interface.

Not very familiar with either dovecot or C, so not 100% sure of what I'm doing,
but this at least builds and serves as a starting point. I did not consider
compatibility with dovecot older than 2.4, so a few ifdefs might need to be
added to fix that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant