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

GitHub noreply at github.com
Thu May 11 14:30:14 EEST 2017


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 0682df00da832130b2f3650926fdd3e46b01b7d4
      https://github.com/dovecot/core/commit/0682df00da832130b2f3650926fdd3e46b01b7d4
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-11 (Thu, 11 May 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: 0674091f8fd1eaaa275cca6a0f3f4c4c8c31a6e1
      https://github.com/dovecot/core/commit/0674091f8fd1eaaa275cca6a0f3f4c4c8c31a6e1
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-11 (Thu, 11 May 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: d644a2e2aba1ba829bfaf860706e3aedee4b73bd
      https://github.com/dovecot/core/commit/d644a2e2aba1ba829bfaf860706e3aedee4b73bd
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-11 (Thu, 11 May 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).


  Commit: 0859ad412ad539bcd7155214c365ff1e507c12ea
      https://github.com/dovecot/core/commit/0859ad412ad539bcd7155214c365ff1e507c12ea
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-05-11 (Thu, 11 May 2017)

  Changed paths:
    M src/auth/auth-request.c

  Log Message:
  -----------
  auth: Use MECH subsystem when logging error about skipping all password databases

Otherwise it will assert-crash because all password databases were skipped.


  Commit: 6b2925709bb575e2b95c2dfd46900c992a7303ba
      https://github.com/dovecot/core/commit/6b2925709bb575e2b95c2dfd46900c992a7303ba
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-05-11 (Thu, 11 May 2017)

  Changed paths:
    M src/auth/auth-request.c
    M src/auth/auth-request.h
    M src/auth/auth-settings.c
    M src/auth/auth-settings.h
    M src/auth/passdb.c
    M src/auth/passdb.h

  Log Message:
  -----------
  auth: Add username_filter for passdb block

username_filter lets you specify one or more pattern(s) for
including or excluding users. exclusion patterns are denoted
with ! prefix.

if any exclude matches the username, passdb will be skipped.
if any inclusions is specified, and the username does not match
one of them, passdb will be skipped.


Compare: https://github.com/dovecot/core/compare/1164a6537da4...6b2925709bb5


More information about the dovecot-cvs mailing list