[dovecot/core] 7e3ef8: lib-storage: Fix handling LAYOUT=index losing mail...

GitHub noreply at github.com
Wed Nov 16 15:30:09 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 7e3ef84dfab4fa2981a55975090aaeb5e8a5ed5f
      https://github.com/dovecot/core/commit/7e3ef84dfab4fa2981a55975090aaeb5e8a5ed5f
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

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

  Log Message:
  -----------
  lib-storage: Fix handling LAYOUT=index losing mailbox names

It lost all the mailbox names.


  Commit: b94bcc82e68712aadd0aa980acf486bfaf0e9cad
      https://github.com/dovecot/core/commit/b94bcc82e68712aadd0aa980acf486bfaf0e9cad
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

  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: If LAYOUT=index loses mailbox names, write the generated ones to index.

Previously it just kept complaining and regenerating new names, without
actually fixing up the situation.


  Commit: 48baf3ac10f069681c8558ea25cca826dca069a3
      https://github.com/dovecot/core/commit/48baf3ac10f069681c8558ea25cca826dca069a3
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

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

  Log Message:
  -----------
  lib-storage: Improve mailbox list index corruption errors


  Commit: 9130eda2eb97055030fd5bccebe43d8585d2bf0c
      https://github.com/dovecot/core/commit/9130eda2eb97055030fd5bccebe43d8585d2bf0c
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

  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 invalid parents in LAYOUT=index

Previously it just kept complaining without fixing the errors.


  Commit: bcfeddf8c91cbb1dcdcf6c54d6d137e08b534ff1
      https://github.com/dovecot/core/commit/bcfeddf8c91cbb1dcdcf6c54d6d137e08b534ff1
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

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

  Log Message:
  -----------
  lib-storage: Prevent parent loops in mailbox list index


  Commit: 606e388022ed2c9e94f912a5205626d11a9da6dc
      https://github.com/dovecot/core/commit/606e388022ed2c9e94f912a5205626d11a9da6dc
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

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

  Log Message:
  -----------
  lib-storage: Prevent renaming mailbox under itself.

This resulted earlier in a loop, which broke the mailbox index.
Note that IMAP already prevented this, so it could only be triggered by
other tools, like doveadm.


  Commit: 97a5e150cacf7da9dd200e317b75460352038d65
      https://github.com/dovecot/core/commit/97a5e150cacf7da9dd200e317b75460352038d65
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

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

  Log Message:
  -----------
  LAYOUT=index: Update mailbox name to mailbox index's header when opening.

This way if the mailbox list index gets lost, a recent mailbox name is still
available.


  Commit: 8463c8976421c93f477613a0be95738d67b81149
      https://github.com/dovecot/core/commit/8463c8976421c93f477613a0be95738d67b81149
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

  Changed paths:
    M src/doveadm/doveadm-dump-index.c

  Log Message:
  -----------
  doveadm dump: Add support for the new box-name index header.


  Commit: 635f41c84e23d51394ce1346adffd1ffaf1790b0
      https://github.com/dovecot/core/commit/635f41c84e23d51394ce1346adffd1ffaf1790b0
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

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

  Log Message:
  -----------
  lib-storage: Preserve box-name header when rebuilding index.


  Commit: 85cbe5d66e22bc1290a33902fa2638245450a2df
      https://github.com/dovecot/core/commit/85cbe5d66e22bc1290a33902fa2638245450a2df
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

  Changed paths:
    M src/lib-storage/list/mailbox-list-index-backend.c
    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:
  -----------
  LAYOUT=index: Don't write corrupted mailbox names to box-name header.

This way when opening a mailbox the box-name header isn't overwritten by
a corrupted name.

Keep track of the corrupted names with MAILBOX_LIST_INDEX_FLAG_CORRUPTED_NAME
flag in list index records. The flag isn't removed until the mailbox is
renamed.


  Commit: 540555c5b435203e1c26c8e7b924b2643ae07ae3
      https://github.com/dovecot/core/commit/540555c5b435203e1c26c8e7b924b2643ae07ae3
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

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

  Log Message:
  -----------
  lib-storage: Added struct mailbox.corrupted_mailbox_name

This allows backends that are adding lost mailboxes to mailbox list index to
indicate that they don't actually know the name of the mailbox, and the
mailbox list index should try to figure it out and rename the mailbox to its
proper name.


  Commit: 83d0c8152f694ae5b5d1798abda5728dc886102a
      https://github.com/dovecot/core/commit/83d0c8152f694ae5b5d1798abda5728dc886102a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-16 (Wed, 16 Nov 2016)

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

  Log Message:
  -----------
  LAYOUT=index: Try to rename corrupted mailbox name during mailbox open.


Compare: https://github.com/dovecot/core/compare/6baee5cd0560...83d0c8152f69


More information about the dovecot-cvs mailing list