[dovecot/core] 4654cf: lib-storage: Add mailbox_list_last_error_push/pop(...

GitHub noreply at github.com
Mon Jul 10 20:00:10 EEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 4654cf737f538f5de032b8c9908913f121917366
      https://github.com/dovecot/core/commit/4654cf737f538f5de032b8c9908913f121917366
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-07-10 (Mon, 10 Jul 2017)

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

  Log Message:
  -----------
  lib-storage: Add mailbox_list_last_error_push/pop()

These are similar to mail_storage_last_error_push/pop()


  Commit: 97d509bef08b8d4361129856abbd47d9ee2589c5
      https://github.com/dovecot/core/commit/97d509bef08b8d4361129856abbd47d9ee2589c5
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-07-10 (Mon, 10 Jul 2017)

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

  Log Message:
  -----------
  lib-storage: Set mailbox list index to be refreshed after changes, not before

Mailbox deletion and rename set the refresh-flag before the change was done.
This was unnecessary if the change didn't happen. Also there was a race
condition that another process could have done the refresh before the
change was even done.


  Commit: f9dcefcf746386cbd6cf59c5bb73c311a7235fc8
      https://github.com/dovecot/core/commit/f9dcefcf746386cbd6cf59c5bb73c311a7235fc8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-07-10 (Mon, 10 Jul 2017)

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

  Log Message:
  -----------
  lib-storage: Refresh mailbox list index if mailbox's existence differs from index


  Commit: 4fc372faccaa5ee46ebf61e4ec8954ae44a39d62
      https://github.com/dovecot/core/commit/4fc372faccaa5ee46ebf61e4ec8954ae44a39d62
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-07-10 (Mon, 10 Jul 2017)

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

  Log Message:
  -----------
  lib-storage: Avoid index refresh with mailbox_list_index_very_dirty_syncs=yes


  Commit: 70092709cdc803c87b8f4ef1b0548eb45515bdae
      https://github.com/dovecot/core/commit/70092709cdc803c87b8f4ef1b0548eb45515bdae
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-07-10 (Mon, 10 Jul 2017)

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

  Log Message:
  -----------
  lib-storage: Track INBOX UIDVALIDITY and GUID in mailbox list index

This allows existence checks and GUID lookups for INBOX to be done from the
index.


  Commit: 15086e056e0ecb99ffcefab7295812e21edb6f37
      https://github.com/dovecot/core/commit/15086e056e0ecb99ffcefab7295812e21edb6f37
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-07-10 (Mon, 10 Jul 2017)

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

  Log Message:
  -----------
  lib-storage: Don't use mailbox list index if it has refresh_flag set

For example if INBOX is deleted, looking up its GUID shouldn't be returned
from the list index since it contains the old GUID.


  Commit: d167a7d64f64eb98414bdb8c6b65bb75bee2d718
      https://github.com/dovecot/core/commit/d167a7d64f64eb98414bdb8c6b65bb75bee2d718
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-07-10 (Mon, 10 Jul 2017)

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

  Log Message:
  -----------
  lib-storage: Fix mailbox_update() to always update mailbox list index.

It previously was updating it only if the list index for the mailbox was
already fully up-to-date. But that doesn't really matter, because
mailbox_update() is supposed to be changing the values regardless.

This fixes mailbox_update() to always work with LAYOUT=index. It also
fixes mailbox_update() for INBOX to update UIDVALIDITY/GUID.


Compare: https://github.com/dovecot/core/compare/c29df09edced...d167a7d64f64


More information about the dovecot-cvs mailing list