[dovecot/core] 0ab737: lib-storage: Fix mailbox list index records with n...

GitHub noreply at github.com
Mon May 22 15:30:12 EEST 2017


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 0ab7379e931b8c97c1dca73139a75d8aeb2aea3a
      https://github.com/dovecot/core/commit/0ab7379e931b8c97c1dca73139a75d8aeb2aea3a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-22 (Mon, 22 May 2017)

  Changed paths:
    M src/lib-storage/list/mailbox-list-index.c

  Log Message:
  -----------
  lib-storage: Fix mailbox list index records with name_id=0

name_id=0 isn't valid, so it needs to be changed and writen to the disk.
The write-to-disk part wasn't working.


  Commit: 65e20e8878b3381543696788c394ca28a031e395
      https://github.com/dovecot/core/commit/65e20e8878b3381543696788c394ca28a031e395
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-22 (Mon, 22 May 2017)

  Changed paths:
    M src/lib-storage/list/mailbox-list-index-sync.c
    M src/lib-storage/list/mailbox-list-index.c
    M src/lib-storage/list/mailbox-list-index.h

  Log Message:
  -----------
  lib-storage: Fix mailbox list index records without guid having invalid flags

With LAYOUT=index the mailbox is found with its GUID. If it doesn't exist,
the mailbox has to be either \NonExistent or \NoSelect. It probably doesn't
make much difference which one, so we'll fix them by adding \NoSelect.

With other layouts the GUID is allowed to be empty, because it can be looked
up from the actual mailbox.


  Commit: f71db30113869c875ab579b50d9d6a893dccd700
      https://github.com/dovecot/core/commit/f71db30113869c875ab579b50d9d6a893dccd700
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-22 (Mon, 22 May 2017)

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

  Log Message:
  -----------
  lib-index: mail_transaction_log_view_set_all() - don't entirely ignore corrupted logs

Ignore them only if it's followed by an index reset.


  Commit: 0e0d6865e1f63c35659ea4db1d484200906b7a1c
      https://github.com/dovecot/core/commit/0e0d6865e1f63c35659ea4db1d484200906b7a1c
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-22 (Mon, 22 May 2017)

  Changed paths:
    M src/lib-index/mail-transaction-log-file.c
    M src/lib-index/mail-transaction-log-private.h
    M src/lib-index/mail-transaction-log-view.c
    M src/lib-index/mail-transaction-log.c
    M src/lib-index/test-mail-transaction-log-view.c

  Log Message:
  -----------
  lib-index: mail_transaction_log_file_map() - return reason/error string

This can help figuring out why some error happened when more context is
provided in the caller's error messages.


  Commit: c95d24a314333a3d9874b32795b8442fdee285b8
      https://github.com/dovecot/core/commit/c95d24a314333a3d9874b32795b8442fdee285b8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-22 (Mon, 22 May 2017)

  Changed paths:
    M src/lib-index/mail-index-view-sync.c

  Log Message:
  -----------
  lib-index: Add missing error logging for mail_index_view_sync_begin()


  Commit: b2b4825218b1de74113b41b12bce837fdaf760d3
      https://github.com/dovecot/core/commit/b2b4825218b1de74113b41b12bce837fdaf760d3
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-22 (Mon, 22 May 2017)

  Changed paths:
    M src/lib-index/mail-transaction-log-file.c
    M src/lib-index/mail-transaction-log-private.h
    M src/lib-index/mail-transaction-log-view.c
    M src/lib-index/test-mail-transaction-log-view.c

  Log Message:
  -----------
  lib-index: mail_transaction_log_file_get_highest_modseq_at() - return error string

This can help figuring out why some error happened when more context is
provided in the caller's error messages.


  Commit: 55206cb57f67dbb4e5064da81e9291bfbfcb9c7a
      https://github.com/dovecot/core/commit/55206cb57f67dbb4e5064da81e9291bfbfcb9c7a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-22 (Mon, 22 May 2017)

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

  Log Message:
  -----------
  lib-index: Improve "start_offset > current sync_offset" error message.

Try to make it clear what is the root cause of it.


  Commit: 41e71d7cf354f42c680b532de2636bfe4ae4c983
      https://github.com/dovecot/core/commit/41e71d7cf354f42c680b532de2636bfe4ae4c983
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-22 (Mon, 22 May 2017)

  Changed paths:
    M src/imap/imap-fetch.c
    M src/imap/imap-fetch.h

  Log Message:
  -----------
  imap: Allow plugins to replace existing FETCH handlers

They can use imap_fetch_handler_lookup() to get the old init() function.
Then they can imap_fetch_handler_unregister() the existing handler and
register a new handler, which can do its own work and call the old init()
if needed.


  Commit: f193b50ac61b978a048618d40f1f07019fa409ee
      https://github.com/dovecot/core/commit/f193b50ac61b978a048618d40f1f07019fa409ee
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-05-22 (Mon, 22 May 2017)

  Changed paths:
    M src/imap/imap-client.h
    M src/imap/imap-sync-private.h
    M src/imap/imap-sync.c

  Log Message:
  -----------
  imap: Move struct client_sync_context to imap-sync-private.h and add imap_ prefix


Compare: https://github.com/dovecot/core/compare/90caca5b4080...f193b50ac61b


More information about the dovecot-cvs mailing list