[dovecot/core] d3426e: lib-storage: If mailbox_create() fails, don't leav...

GitHub noreply at github.com
Sat Dec 3 17:46:29 UTC 2016


  Branch: refs/heads/release-2.2.27
  Home:   https://github.com/dovecot/core
  Commit: d3426e98463517232a2cf3d571247d25f32333c5
      https://github.com/dovecot/core/commit/d3426e98463517232a2cf3d571247d25f32333c5
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

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

  Log Message:
  -----------
  lib-storage: If mailbox_create() fails, don't leave box in partially opened state.

For example with sdbox it may have opened the indexes, but not set mailbox's
GUID. A following MAILBOX_METADATA_GUID would then assert-crash because GUID
is empty.


  Commit: 8f0b35db36cf399fd343ef26cc20f89886a4c6ef
      https://github.com/dovecot/core/commit/8f0b35db36cf399fd343ef26cc20f89886a4c6ef
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M doc/man/doveadm-director.1.in

  Log Message:
  -----------
  man: Update doveadm director flush description


  Commit: 9d86be5b636bcbf6297c2d00bce672ea6e8e4bc3
      https://github.com/dovecot/core/commit/9d86be5b636bcbf6297c2d00bce672ea6e8e4bc3
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

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

  Log Message:
  -----------
  lib-storage: Add struct mail_save_context.copy_src_mail


  Commit: 80249bd4180a1cc915d2e9a72f47b1525d1ce5c6
      https://github.com/dovecot/core/commit/80249bd4180a1cc915d2e9a72f47b1525d1ce5c6
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/plugins/quota/quota-storage.c

  Log Message:
  -----------
  quota: Don't skip quota checks when moving mails between different quota roots.


  Commit: b998db8adb80da954832a60faa1c3cb3725af3b5
      https://github.com/dovecot/core/commit/b998db8adb80da954832a60faa1c3cb3725af3b5
  Author: J. Nick Koston <nick at cpanel.net>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/config/config-filter.c

  Log Message:
  -----------
  config: Match multiple names in local_name

This can significantly reduce memory usage when using
a UCC certificate with multiple names by only loading
the certificate and key once.


  Commit: 059c6552faf31d61b9934a27d3620a5964a91ee9
      https://github.com/dovecot/core/commit/059c6552faf31d61b9934a27d3620a5964a91ee9
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/doveadm/doveadm-dsync.c
    M src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c
    M src/doveadm/dsync/dsync-brain-mailbox.c
    M src/doveadm/dsync/dsync-brain-mails.c
    M src/doveadm/dsync/dsync-brain-private.h
    M src/doveadm/dsync/dsync-brain.c
    M src/doveadm/dsync/dsync-brain.h
    M src/doveadm/dsync/dsync-mailbox-import.c
    M src/doveadm/dsync/dsync-mailbox-import.h

  Log Message:
  -----------
  dsync: When logging "Mailbox changed caused a desync", log also the reason.

The reason is usually somewhere in the debug logs, but it's difficult to
find from there.


  Commit: f416497dac986782be864710837e9bfee18c0041
      https://github.com/dovecot/core/commit/f416497dac986782be864710837e9bfee18c0041
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/lib-dict/dict-client.c

  Log Message:
  -----------
  dict-client: Don't timeout lookups without waiting 1sec in dict ioloop.

What could have happened was:

 - dict-client sends a request to dict-server
 - dict-client process starts doing something else
 - dict-server answers
 - dict-client process continues doing something else for over 30 seconds,
   not reading the dict-server answer
 - dict-client process gets back to dict ioloop, which runs the timeout
   before checking if there is anything available for reading.

Now we'll wait for 1 second in the last dict ioloop before assuming that
there's a timeout.


  Commit: ec4fad7c297dcacb906895b0ec30ef6f4ab0bb22
      https://github.com/dovecot/core/commit/ec4fad7c297dcacb906895b0ec30ef6f4ab0bb22
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

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

  Log Message:
  -----------
  lib-storage: Return vsize=0 from mailbox list index for empty mailboxes.

If it's known that the mailbox has no mails, there's no reason to open the
mailbox to see that its size is 0.


  Commit: e7ffdd7c4855b0a649930346d528ee48322b3abd
      https://github.com/dovecot/core/commit/e7ffdd7c4855b0a649930346d528ee48322b3abd
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/lib/seq-range-array.c
    M src/lib/test-seq-range-array.c

  Log Message:
  -----------
  lib: seq_range_array_*(): Fix seq2=2^32-1 handling

Adding/merging it when it already existed added duplicated seq_range.


  Commit: d6258c424a53063fc743dd3f0e2b6580a491f344
      https://github.com/dovecot/core/commit/d6258c424a53063fc743dd3f0e2b6580a491f344
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/lib-storage/mail-search-args-simplify.c
    M src/lib-storage/test-mail-search-args-simplify.c

  Log Message:
  -----------
  lib-storage: Fix simplifying sequence sets and UID sets.

They were being handled completely wrong. The unit tests testing them
were also completely wrong.


  Commit: 3fa668a0816a37bfe7125d3cee218fd37af08b2a
      https://github.com/dovecot/core/commit/3fa668a0816a37bfe7125d3cee218fd37af08b2a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c

  Log Message:
  -----------
  dsync: Add mailbox names as well as GUIDs to log messages.


  Commit: 958a8fc280f721eb44f7ca053e3f63d2855568e5
      https://github.com/dovecot/core/commit/958a8fc280f721eb44f7ca053e3f63d2855568e5
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c

  Log Message:
  -----------
  dsync: Fix log format string broken by earlier change


  Commit: f2609d35b3bfd7f73f62ca9c87c5dcc4e737d567
      https://github.com/dovecot/core/commit/f2609d35b3bfd7f73f62ca9c87c5dcc4e737d567
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/lib-http/http-client-queue.c
    M src/lib-http/test-http-client-errors.c

  Log Message:
  -----------
  lib-http: client: Fixed assert failure occurring when a new connection fails for a peer that has active connections.

Fixes: Panic: file http-client-queue.c: line 481 (http_client_queue_connection_failure): assertion failed: (queue->cur_peer == NULL)


  Commit: aa235f897525150b204bb22c8e7247489e17e307
      https://github.com/dovecot/core/commit/aa235f897525150b204bb22c8e7247489e17e307
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/auth/auth-policy.c
    M src/auth/mech-plain-common.c
    M src/auth/mycrypt.c
    M src/auth/password-scheme-rpa.c
    M src/doveadm/doveadm-print-formatted.c
    M src/doveadm/doveadm-print-json.c
    M src/lib-dcrypt/dcrypt-gnutls.c
    M src/lib-dcrypt/dcrypt-openssl.c
    M src/lib-dcrypt/dcrypt.c
    M src/lib-dcrypt/istream-decrypt.c
    M src/lib-dcrypt/test-crypto.c
    M src/lib-dcrypt/test-stream.c
    M src/lib-dns/test-dns-util.c
    M src/lib-fts/fts-library.c
    M src/lib-fts/fts-tokenizer-common.c
    M src/lib-http/http-request.c
    M src/lib-http/http-response.c
    M src/lib/pkcs5.c

  Log Message:
  -----------
  global: Added missing copyright notices.


  Commit: d7062405ea52f4f2c05fc4a2469af64c80143d06
      https://github.com/dovecot/core/commit/d7062405ea52f4f2c05fc4a2469af64c80143d06
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/lib-storage/index/dbox-single/sdbox-sync-rebuild.c
    M src/lib-storage/index/dbox-single/sdbox-sync.c

  Log Message:
  -----------
  sdbox: Rebuild index after it's been fsck'd


  Commit: 1163a576f2521ee913cf5ff967ea248b3ebe6487
      https://github.com/dovecot/core/commit/1163a576f2521ee913cf5ff967ea248b3ebe6487
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M src/lib/hmac.c
    M src/lib/hmac.h

  Log Message:
  -----------
  lib: Add hmac helpers

These run hmac for given data with given parameters
and returns stack allocated buffer. They are helpful
when doing lots of HMACs, such as the AWS4 signing
protocol.


  Commit: c0f36b02966d9a5d8b4c8c034044b3b9f277a0b7
      https://github.com/dovecot/core/commit/c0f36b02966d9a5d8b4c8c034044b3b9f277a0b7
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M NEWS
    M configure.ac

  Log Message:
  -----------
  Released v2.2.27.


Compare: https://github.com/dovecot/core/compare/81cbf87d0cce...c0f36b02966d


More information about the dovecot-cvs mailing list