[dovecot/core] cb1203: lib-index: mail_index_update_keywords() - don't as...

GitHub noreply at github.com
Thu Apr 27 18:00:10 EEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: cb1203abda86ebc369a41841b83751b3ee5f27a7
      https://github.com/dovecot/core/commit/cb1203abda86ebc369a41841b83751b3ee5f27a7
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-27 (Thu, 27 Apr 2017)

  Changed paths:
    M src/lib-index/mail-index-transaction-update.c

  Log Message:
  -----------
  lib-index: mail_index_update_keywords() - don't assert if adding/removing 0 keywords

Although it would be nice for the caller to check it, it's easier to do
here. It's mainly a problem with mailbox_keywords_create_valid() that may
unexpectedly create empty keywords.


  Commit: 483e8d4974b5f0751866d9dbfc0e1e78f8a40664
      https://github.com/dovecot/core/commit/483e8d4974b5f0751866d9dbfc0e1e78f8a40664
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-27 (Thu, 27 Apr 2017)

  Changed paths:
    M src/lib-storage/index/index-search.c
    M src/lib-storage/mail-search.h

  Log Message:
  -----------
  lib-storage: Fix searching when search query has invalid keywords.

For example "SEARCH KEYWORD ]" was returning all mails instead of nothing.


  Commit: 06c956f4154bbed5cc4bf7fbd6553a7d93ca24cc
      https://github.com/dovecot/core/commit/06c956f4154bbed5cc4bf7fbd6553a7d93ca24cc
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-27 (Thu, 27 Apr 2017)

  Changed paths:
    M src/lib-storage/mail-search-args-imap.c

  Log Message:
  -----------
  lib-storage: mail_search_arg_to_imap() - Fix writing invalid keywords

Just write the original invalid keyword string as output. It might not be
entirely invalid - just invalid within this mailbox (e.g. a mailbox doesn't
allow new keywords).


Compare: https://github.com/dovecot/core/compare/3abc26e06e05...06c956f4154b


More information about the dovecot-cvs mailing list