[dovecot/core] e3bdc1: lib-dcrypt: Improved error message when istream is...
GitHub
noreply at github.com
Thu Aug 4 15:30:17 UTC 2016
Branch: refs/heads/master-2.2
Home: https://github.com/dovecot/core
Commit: e3bdc112ca473bdae187bff029e4feb589213899
https://github.com/dovecot/core/commit/e3bdc112ca473bdae187bff029e4feb589213899
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/istream-decrypt.c
Log Message:
-----------
lib-dcrypt: Improved error message when istream isn't encrypted.
Commit: fdb1b596168c7ab3d4dd56c2b19f3f891cde13a6
https://github.com/dovecot/core/commit/fdb1b596168c7ab3d4dd56c2b19f3f891cde13a6
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/ostream-encrypt.c
Log Message:
-----------
lib-dcrypt: Allow flushing ostream multiple times.
The first time flushes the encryption and the following times just flush the
parent stream.
Commit: b4796b3100ce0c93f43060c42f314445442c9d0e
https://github.com/dovecot/core/commit/b4796b3100ce0c93f43060c42f314445442c9d0e
Author: Stephan Bosch <stephan at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib/istream.c
Log Message:
-----------
Calling i_stream_next_line() on a chain stream would sometimes erroneously use the stream->w_buffer.
It used the wrong check to assess whether the w_buffer is usable.
The chain stream only uses the w_buffer when partial stream data needs to be merged. Otherwise, a parent stream's buffer is used directly. However, this does not mean that w_buffer will be NULL in that case, which is what i_stream_next_line() assumed.
Commit: 6d941a2fe8f1e767e62890dc3ffbcb416267794b
https://github.com/dovecot/core/commit/6d941a2fe8f1e767e62890dc3ffbcb416267794b
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib/sha1.h
Log Message:
-----------
lib: Potential compiling fix.
STATIC_ARRAY apparently requires that the parameter is named in some gcc
versions? In any case doesn't hurt.
Commit: 780a61ae1eef28567eac1bd7a47c72a291a69ef3
https://github.com/dovecot/core/commit/780a61ae1eef28567eac1bd7a47c72a291a69ef3
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/plugins/lazy-expunge/lazy-expunge-plugin.c
Log Message:
-----------
lazy-expunge: If lazy-expunge transaction failed already, stop further expunges.
Most importantly if the lazy-expunge mailbox opening fails, we don't now
retry opening the mailbox for each expunged mail.
Commit: 759da60e74fcfa12cc3aabd4f89e5ec00ccb1159
https://github.com/dovecot/core/commit/759da60e74fcfa12cc3aabd4f89e5ec00ccb1159
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/auth/auth-request-var-expand.c
M src/auth/auth-request-var-expand.h
Log Message:
-----------
auth: Code cleanup - use const for struct auth_request.
Commit: 0a21a4e5a6c2cff6535e4d2a285b9d76311926f8
https://github.com/dovecot/core/commit/0a21a4e5a6c2cff6535e4d2a285b9d76311926f8
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/auth/auth-worker-client.c
Log Message:
-----------
auth: Set userdb_lookup flag correctly for blocking userdb lookups.
This caused at least userdb-related logging to log the passdb instead.
Commit: b4156beb95d74d8a11ad66da1384146cbaf9a12f
https://github.com/dovecot/core/commit/b4156beb95d74d8a11ad66da1384146cbaf9a12f
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/auth/auth-cache.c
M src/auth/test-auth-cache.c
Log Message:
-----------
auth: Fixed caching to support %{passdb} and %{userdb}
Commit: 2103e21166218325eb6daf4d3a01e5730c6823b6
https://github.com/dovecot/core/commit/2103e21166218325eb6daf4d3a01e5730c6823b6
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-storage/index/index-mail.c
Log Message:
-----------
lib-storage: Don't crash fetching body.snippet when multipart/alternative part has no Content-Type
Commit: b3a52b07862fdd828be355a6451fb53bb8b15bad
https://github.com/dovecot/core/commit/b3a52b07862fdd828be355a6451fb53bb8b15bad
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-storage/index/index-storage.c
Log Message:
-----------
lib-storage: mbox_min_index_size setting didn't work correctly.
Commit: 77304569b762e24de42df87a776ba55a2fdfceac
https://github.com/dovecot/core/commit/77304569b762e24de42df87a776ba55a2fdfceac
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/plugins/quota/quota.c
Log Message:
-----------
quota: Log an error if mail's size can't be read.
We were still logging "Internal quota calculation error" but not necessarily
any other reason.
Commit: 9f488469e5ceae235718b2fd7b94aac562599170
https://github.com/dovecot/core/commit/9f488469e5ceae235718b2fd7b94aac562599170
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dict/dict-client.c
Log Message:
-----------
dict-client: Fixed hang in async iteration if it failed.
Commit: c1a4bc46e0921ec758c9cd5eef0e3ff9539048ad
https://github.com/dovecot/core/commit/c1a4bc46e0921ec758c9cd5eef0e3ff9539048ad
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dict/dict-client.c
Log Message:
-----------
dict-client: Improved timeout error message
Commit: b1b1b925ea38fe57159c7d80a03c7d8585e94ae0
https://github.com/dovecot/core/commit/b1b1b925ea38fe57159c7d80a03c7d8585e94ae0
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dict/dict-client.c
Log Message:
-----------
dict-client: When we get disconnected, reconnect and re-send commands.
Commit: 66417aa67b2a0ca0624daab3e64d1850aff3c9a2
https://github.com/dovecot/core/commit/66417aa67b2a0ca0624daab3e64d1850aff3c9a2
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dict/dict-client.c
Log Message:
-----------
dict-client: Don't keep a request timeout when there are only background commands.
Commit: 06c22174885259f799d5c3647534830bf71a5d5d
https://github.com/dovecot/core/commit/06c22174885259f799d5c3647534830bf71a5d5d
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-fs/fs-api-private.h
M src/lib-fs/fs-api.c
M src/lib-fs/fs-api.h
M src/lib-fs/fs-dict.c
M src/lib-fs/fs-metawrap.c
M src/lib-fs/fs-posix.c
M src/lib-fs/fs-randomfail.c
M src/lib-fs/fs-sis-queue.c
M src/lib-fs/fs-sis.c
M src/lib-fs/fs-test.c
M src/lib-fs/fs-wrapper.c
M src/lib-fs/fs-wrapper.h
M src/plugins/fs-compress/fs-compress.c
Log Message:
-----------
lib-fs: Added fs_get_nlinks()
Although fs_stat() could return this, its caller can't indicate whether
it actually wants the link count. Usually fs_stat() is used only to get
the file's size. In some backends it's not cheap to get the link count,
so adding this function allows the caller to explicitly ask for it.
Commit: 413e0d9bc929a4fe1379281207891547a25f4472
https://github.com/dovecot/core/commit/413e0d9bc929a4fe1379281207891547a25f4472
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-storage/Makefile.am
Log Message:
-----------
--without-shared-libs was linking libdovecot.so to mail binaries.
Broken by e42dd7149.
Commit: 55b26ae4168ff6aac77db1939c9ac01caa033b66
https://github.com/dovecot/core/commit/55b26ae4168ff6aac77db1939c9ac01caa033b66
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib/test-var-expand.c
M src/lib/var-expand.c
M src/lib/var-expand.h
Log Message:
-----------
lib: var_get_key() didn't handle %{long_variables} correctly
This also fixes var_has_key()'s long_key handling.
Commit: e16245a46ec24a2609515627137343c8f51d1281
https://github.com/dovecot/core/commit/e16245a46ec24a2609515627137343c8f51d1281
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib/test-var-expand.c
M src/lib/var-expand.c
M src/lib/var-expand.h
Log Message:
-----------
lib: var_has_key() properly ignores key=='\0' now.
Commit: 0e6c2c0d528cc1dc8fe13aba5db03fbd9c17a23f
https://github.com/dovecot/core/commit/0e6c2c0d528cc1dc8fe13aba5db03fbd9c17a23f
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/imap-hibernate/imap-client.c
M src/imap-hibernate/imap-client.h
M src/imap-hibernate/imap-master-connection.c
M src/imap-hibernate/imap-master-connection.h
M src/imap-hibernate/main.c
Log Message:
-----------
imap-hibernate: If imap-master socket is busy, retry un-hibernation later.
Commit: 6df3a72708433e6ae54a226162b220ef427345bb
https://github.com/dovecot/core/commit/6df3a72708433e6ae54a226162b220ef427345bb
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/imap-hibernate/imap-master-connection.c
Log Message:
-----------
imap-hibernate: If un-hibernation failed due to timeout, log whether we saw version line.
Could help with debugging.
Commit: 79f0c303942c988e93ecaefec0d83f542f96bdb0
https://github.com/dovecot/core/commit/79f0c303942c988e93ecaefec0d83f542f96bdb0
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/imap/imap-master-client.c
Log Message:
-----------
imap: When un-hibernating, send notification to imap-hibernate process earlier.
The initialization shouldn't take a long time, but there's really no need to
keep imap-hibernate itself waiting (and maybe timing out) if it does.
Commit: 73ebd9d13376ad4e5edc12b1bd17346fa1816679
https://github.com/dovecot/core/commit/73ebd9d13376ad4e5edc12b1bd17346fa1816679
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-lda/mail-deliver.c
Log Message:
-----------
lib-lda: Code cleanup - move code to mail_deliver_open_mail()
No functional changes. On its own this is a rather useless cleanup, but
simplifies the next patch.
Commit: 92d780b326bcbce01719492e28ad1195bd2723bd
https://github.com/dovecot/core/commit/92d780b326bcbce01719492e28ad1195bd2723bd
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-lda/mail-deliver.c
Log Message:
-----------
lib-lda: Support %{storage_id} in deliver_log_format
Commit: b5c1836fbd9539b7eedd008fbcf1f43fa540350a
https://github.com/dovecot/core/commit/b5c1836fbd9539b7eedd008fbcf1f43fa540350a
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/doveadm/doveadm-proxy.c
Log Message:
-----------
doveadm proxy kick: Fixed output message.
Commit: 8deeb07e9f259d030f74d79176fac5ae0c336dda
https://github.com/dovecot/core/commit/8deeb07e9f259d030f74d79176fac5ae0c336dda
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-storage/index/index-mail.c
M src/lib-storage/mail-storage-private.h
M src/lib-storage/mail-storage.h
M src/lib-storage/mail.c
Log Message:
-----------
lib-storage: Added mail_get_stream_because() and mail_get_hdr_stream_because()
With mail_debug=yes each mail access is now logged with a reason. This can
be helpful when figuring out why something isn't in dovecot.index.cache.
Commit: d4aec67125c53369dab07211d7f2e2e4c71818c1
https://github.com/dovecot/core/commit/d4aec67125c53369dab07211d7f2e2e4c71818c1
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-index/mail-cache-lookup.c
M src/lib-index/mail-cache.h
Log Message:
-----------
lib-index: Added mail_cache_get_missing_reason()
Commit: 3224daea50da2db82b6d637efd5ee5c810849f4b
https://github.com/dovecot/core/commit/3224daea50da2db82b6d637efd5ee5c810849f4b
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-imap-storage/imap-msgpart.c
M src/lib-storage/index/index-mail-binary.c
M src/lib-storage/index/index-mail-headers.c
M src/lib-storage/index/index-mail.c
M src/lib-storage/index/index-mail.h
M src/lib-storage/index/index-search.c
M src/lib-storage/mail-copy.c
M src/plugins/fts/fts-build-mail.c
M src/plugins/pop3-migration/pop3-migration-plugin.c
M src/pop3/pop3-commands.c
Log Message:
-----------
Use mail_get_*stream_because() wherever possible.
Commit: 48d503d437c7c97cfd95e6f9ca432fbe82e28596
https://github.com/dovecot/core/commit/48d503d437c7c97cfd95e6f9ca432fbe82e28596
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-index/mail-cache-compress.c
M src/lib-index/mail-index.h
M src/lib-storage/index/index-storage.c
Log Message:
-----------
lib-index: If mail_debug=yes, log cache compressions.
Commit: 5d5553da84f92e08466f9fa1c6d537e93a48b87b
https://github.com/dovecot/core/commit/5d5553da84f92e08466f9fa1c6d537e93a48b87b
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-index/mail-cache-lookup.c
Log Message:
-----------
lib-index: Fixed debug logging.
Commit: 284a77b1468fa846fdce2a46e9cceb84c6c10d39
https://github.com/dovecot/core/commit/284a77b1468fa846fdce2a46e9cceb84c6c10d39
Author: Aki Tuomi <aki.tuomi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/plugins/last-login/last-login-plugin.c
Log Message:
-----------
last-login: Add error handling for commit
Commit: 863ce61193ca6fe5d4773bdbe48b470f0a8c337f
https://github.com/dovecot/core/commit/863ce61193ca6fe5d4773bdbe48b470f0a8c337f
Author: Aki Tuomi <aki.tuomi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/dcrypt-openssl.c
M src/lib-dcrypt/dcrypt-private.h
M src/lib-dcrypt/dcrypt.c
M src/lib-dcrypt/dcrypt.h
Log Message:
-----------
dcrypt: Use refcounting on keys
Commit: 612d324735a1649f5d622c7a370997206d454953
https://github.com/dovecot/core/commit/612d324735a1649f5d622c7a370997206d454953
Author: Aki Tuomi <aki.tuomi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/istream-decrypt.c
M src/lib-dcrypt/ostream-encrypt.c
Log Message:
-----------
dcrypt-iostream: Ref/unref keys
Commit: 89a8f5dfd4137edf752697a9da0abac21b76e211
https://github.com/dovecot/core/commit/89a8f5dfd4137edf752697a9da0abac21b76e211
Author: Aki Tuomi <aki.tuomi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/test-crypto.c
M src/lib-dcrypt/test-stream.c
Log Message:
-----------
dcrypt: Update API for testing
Commit: 99bc07e8d5378f9f900dc5dec8cfb5d947d79246
https://github.com/dovecot/core/commit/99bc07e8d5378f9f900dc5dec8cfb5d947d79246
Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/test-stream.c
Log Message:
-----------
lib-dcrypt: add crashing 8 byte garbage read test
Commit: 60ead27f8760d702f87357919fc8c5debb1f8a2e
https://github.com/dovecot/core/commit/60ead27f8760d702f87357919fc8c5debb1f8a2e
Author: Aki Tuomi <aki.tuomi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/istream-decrypt.c
Log Message:
-----------
lib-dcrypt: Handle short reads in header correctly
Commit: de9c2408fb55a9a2112faf332af08949cedeee60
https://github.com/dovecot/core/commit/de9c2408fb55a9a2112faf332af08949cedeee60
Author: Aki Tuomi <aki.tuomi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/dcrypt-openssl.c
Log Message:
-----------
lib-dcrypt: Do not unref key twice
Commit: 5bc9fcc84ea80bbdc2b918b0d1bbb34728ec5203
https://github.com/dovecot/core/commit/5bc9fcc84ea80bbdc2b918b0d1bbb34728ec5203
Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/dcrypt-openssl.c
M src/lib-dcrypt/test-crypto.c
Log Message:
-----------
lib-dcrypt: change v2 key field separator to ':'
Commit: 791f2751a1f1fce6bb1356067c58cc4c0b27fe2b
https://github.com/dovecot/core/commit/791f2751a1f1fce6bb1356067c58cc4c0b27fe2b
Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/dcrypt-openssl.c
Log Message:
-----------
lib-dcrypt: get_info in openssl_load_public_key
Use dcrypt_openssl_key_string_get_info to determine the key format
instead of taking it as a parameter.
Commit: b55e1276ee8c172ed0eff8c5e9f6bfcb624db04b
https://github.com/dovecot/core/commit/b55e1276ee8c172ed0eff8c5e9f6bfcb624db04b
Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/dcrypt-openssl.c
Log Message:
-----------
lib-dcrypt: get_info in openssl_load_private_key
Use dcrypt_openssl_key_string_get_info to determine the key format
instead of taking it as a parameter.
Commit: 45cc36e2b6482b5cff72cf65fa5c527034a5c84d
https://github.com/dovecot/core/commit/45cc36e2b6482b5cff72cf65fa5c527034a5c84d
Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/dcrypt-openssl.c
M src/lib-dcrypt/dcrypt-private.h
M src/lib-dcrypt/dcrypt.c
M src/lib-dcrypt/dcrypt.h
M src/lib-dcrypt/test-crypto.c
M src/lib-dcrypt/test-stream.c
Log Message:
-----------
lib-dcrypt: drop format from key_load_private
Commit: 3f07c941947c0a895af07d231b9524cf9ad15655
https://github.com/dovecot/core/commit/3f07c941947c0a895af07d231b9524cf9ad15655
Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/lib-dcrypt/dcrypt-openssl.c
M src/lib-dcrypt/dcrypt-private.h
M src/lib-dcrypt/dcrypt.c
M src/lib-dcrypt/dcrypt.h
M src/lib-dcrypt/test-crypto.c
M src/lib-dcrypt/test-stream.c
Log Message:
-----------
lib-dcrypt: drop format from key_load_public
Commit: e26dc8849e3c16689638017909534815bf5b5309
https://github.com/dovecot/core/commit/e26dc8849e3c16689638017909534815bf5b5309
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths:
M src/director/director-connection.c
Log Message:
-----------
director: Added more debug information to "Ping timed out" error
Compare: https://github.com/dovecot/core/compare/d81a83bf1d3d...e26dc8849e3c
More information about the dovecot-cvs
mailing list