[dovecot/core] 2608ab: lib-index: Add mail_cache_open_or_create_path()

GitHub noreply at github.com
Mon Nov 20 15:00:11 EET 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 2608ab4495148a9362e75ec5c67dcbdec92dbae2
      https://github.com/dovecot/core/commit/2608ab4495148a9362e75ec5c67dcbdec92dbae2
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-20 (Mon, 20 Nov 2017)

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

  Log Message:
  -----------
  lib-index: Add mail_cache_open_or_create_path()

This allows moving cache file to another directory.


  Commit: 72af6886cb51e0ee02c9b3d6a7572eef8a0e236f
      https://github.com/dovecot/core/commit/72af6886cb51e0ee02c9b3d6a7572eef8a0e236f
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-20 (Mon, 20 Nov 2017)

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

  Log Message:
  -----------
  lib-index: Add mail_index_set_cache_dir() to change .cache's directory


  Commit: da613017f6000a562a3217496c12d101dca4c748
      https://github.com/dovecot/core/commit/da613017f6000a562a3217496c12d101dca4c748
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-20 (Mon, 20 Nov 2017)

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

  Log Message:
  -----------
  lib-storage: mailbox_rename() - Improve debug logging when namespaces are incompatible


  Commit: 638600575ee95f2513c683ef09cb188f76eacd22
      https://github.com/dovecot/core/commit/638600575ee95f2513c683ef09cb188f76eacd22
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-20 (Mon, 20 Nov 2017)

  Changed paths:
    M src/lib-storage/index/index-storage.c
    M src/lib-storage/index/mbox/mbox-storage.c
    M src/lib-storage/list/mailbox-list-delete.c
    M src/lib-storage/list/mailbox-list-fs.c
    M src/lib-storage/list/mailbox-list-maildir.c
    M src/lib-storage/mail-storage.c
    M src/lib-storage/mailbox-list.c
    M src/lib-storage/mailbox-list.h

  Log Message:
  -----------
  lib-storage: Add INDEXCACHE=<path> to mail_location

This allows configuring a different directory for dovecot.index.cache files
than the rest of the index files.


  Commit: 3fdbff36858760732e48a6f1040be30e7fb6df80
      https://github.com/dovecot/core/commit/3fdbff36858760732e48a6f1040be30e7fb6df80
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-20 (Mon, 20 Nov 2017)

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

  Log Message:
  -----------
  lib-storage: Make sure mailbox autocreation doesn't get into infinite loop

If mailbox_create() -> mailbox_open() fails with MAIL_ERROR_NOTFOUND, it
would have looped back to mailbox_create() and continued this until
running out of stack.


  Commit: eaebd98a29299a4bde843323bc2edbde1d0d7d45
      https://github.com/dovecot/core/commit/eaebd98a29299a4bde843323bc2edbde1d0d7d45
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-20 (Mon, 20 Nov 2017)

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

  Log Message:
  -----------
  lib-storage: Fix mailbox_create_missing_dir() with storages that have no mail root dir

The mailbox still exists even if the mail root directory doesn't, so there's
no point in even trying to stat() it.


Compare: https://github.com/dovecot/core/compare/ca0cfbcd1656...eaebd98a2929


More information about the dovecot-cvs mailing list