[dovecot/core] 0510f8: lib-index: Allow multiple hooks for transaction cr...

GitHub noreply at github.com
Tue Feb 21 21:00:15 UTC 2017


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 0510f81ff1f37ae77a02b6adf1b4225b14a56b90
      https://github.com/dovecot/core/commit/0510f81ff1f37ae77a02b6adf1b4225b14a56b90
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

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

  Log Message:
  -----------
  lib-index: Allow multiple hooks for transaction creation


  Commit: 58e93ef5041a17e283f52cad8de01aacf272d6a6
      https://github.com/dovecot/core/commit/58e93ef5041a17e283f52cad8de01aacf272d6a6
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M src/lib-storage/mail-storage-hooks.c
    M src/lib/Makefile.am
    A src/lib/hook-build.c
    A src/lib/hook-build.h

  Log Message:
  -----------
  lib,lib-storage: Move hook building code to lib

This allows it to be reused elsewhere


  Commit: d7904f9a50efd8bd813ba3abc5e2fbba46fd44c1
      https://github.com/dovecot/core/commit/d7904f9a50efd8bd813ba3abc5e2fbba46fd44c1
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

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

  Log Message:
  -----------
  lib-index: Add missing initialization for chained hooks


  Commit: 86f26deab557cda2b122e32c467be333f451644c
      https://github.com/dovecot/core/commit/86f26deab557cda2b122e32c467be333f451644c
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

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

  Log Message:
  -----------
  lib-index: Unconstifty pointer array

clang complained about the extra const.


  Commit: 95e2c9f27696f41ec9358bdef267f0ddcb842972
      https://github.com/dovecot/core/commit/95e2c9f27696f41ec9358bdef267f0ddcb842972
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

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

  Log Message:
  -----------
  imapc: Error handling wasn't setting storage error everywhere.

This would have used the previous error, which might not have been correct.


  Commit: e69444414a97c3ad2d22fb6237b16f497a56663c
      https://github.com/dovecot/core/commit/e69444414a97c3ad2d22fb6237b16f497a56663c
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

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

  Log Message:
  -----------
  imap: Fix error message in failed FETCH's NO reply.

This was broken only with the new imap_fetch_failure = no-after setting.


  Commit: fe7e8f48680ebf5e7f4fc4c12627169aecc01921
      https://github.com/dovecot/core/commit/fe7e8f48680ebf5e7f4fc4c12627169aecc01921
  Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M src/lib/test-utc-mktime.c
    M src/lib/utc-mktime.c
    M src/lib/utc-mktime.h

  Log Message:
  -----------
  lib: Accept leap second in utc_mktime

Accept leap second at any time in utc_mktime since utc_mktime is being
used before applying the timezone offset everywhere.


  Commit: bebf61818af198f68bf5f646f04dc62c0049c05f
      https://github.com/dovecot/core/commit/bebf61818af198f68bf5f646f04dc62c0049c05f
  Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M src/lib/test-utc-mktime.c

  Log Message:
  -----------
  lib: Place input/output of utc_mktime tests in one struct

Define both input and output of a utc_mktime test case in a single
struct so it is easier to follow and less error prone.


  Commit: 8aa80a36aadbd1cd4e2cbadb72c0aa29b9232980
      https://github.com/dovecot/core/commit/8aa80a36aadbd1cd4e2cbadb72c0aa29b9232980
  Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M src/lib-mail/test-message-date.c

  Log Message:
  -----------
  lib-mail: Place input/output of message-date tests in one struct

Define both input and output of a message date test case in a single
struct so it is easier to follow and less error prone. Also add some
leap second tests.


  Commit: 1b41f473cfae10d030a12a8fe1a75c383c81de7e
      https://github.com/dovecot/core/commit/1b41f473cfae10d030a12a8fe1a75c383c81de7e
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M src/lib/test-utc-mktime.c

  Log Message:
  -----------
  lib: Fix test-utc-mktime with 32bit time_t


  Commit: 2d42ba728823b07da1e21fd9ab2f189e61e45a28
      https://github.com/dovecot/core/commit/2d42ba728823b07da1e21fd9ab2f189e61e45a28
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M src/lib-lda/mail-deliver.c

  Log Message:
  -----------
  lib-lda: Refactor - Add struct mail_deliver_mailbox


  Commit: 7c6a1def56059711b7379ac64bb888584d7735e6
      https://github.com/dovecot/core/commit/7c6a1def56059711b7379ac64bb888584d7735e6
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M src/lib-lda/mail-deliver.c

  Log Message:
  -----------
  lib-lda: Refactor - mail_deliver_log_update_cache() doesn't need entire deliver_ctx


  Commit: 87e4dd14aad473c1d3193edc1fc93b3e0cf39184
      https://github.com/dovecot/core/commit/87e4dd14aad473c1d3193edc1fc93b3e0cf39184
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M src/lib-lda/mail-deliver.c

  Log Message:
  -----------
  lib-lda: Fix delivery logging when Sieve performs multiple actions

Previous code assumed that it would work like:
 - save/copy
 - transaction commit
 - mail_deliver_ctx_get_log_var_expand_table()
 - repeat for transaction 2

While it really works:
 - transaction 1: save/copy
 - transaction 2: save/copy
 - transaction 1: commit
 - mail_deliver_ctx_get_log_var_expand_table()
 - transaction 2: commit
 - mail_deliver_ctx_get_log_var_expand_table()

So the cache needs to be stored per transaction. This code still wouldn't
work correctly if Sieve saved mails multiple times within the same
transaction, but that doesn't happen (at least currently).


  Commit: d89a40c345b3d3eef3af3af27c9ed934e34d4ec4
      https://github.com/dovecot/core/commit/d89a40c345b3d3eef3af3af27c9ed934e34d4ec4
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M src/lib/test-utc-mktime.c

  Log Message:
  -----------
  lib: Fix again test-utc-mktime with 32bit time_t


Compare: https://github.com/dovecot/core/compare/b3443fcac414...d89a40c345b3


More information about the dovecot-cvs mailing list