]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
9 years agotest-priorityq: Ensure item is not NULL
Aki Tuomi [Tue, 16 Aug 2016 10:31:48 +0000 (13:31 +0300)] 
test-priorityq: Ensure item is not NULL

Makes static analysers happy

9 years agomd5: Initialize block
Aki Tuomi [Tue, 16 Aug 2016 10:30:36 +0000 (13:30 +0300)] 
md5: Initialize block

Makes static analysers happy

9 years agolib-storage: If chdir to home doesn't work, chdir to root instead.
Timo Sirainen [Tue, 16 Aug 2016 11:53:24 +0000 (14:53 +0300)] 
lib-storage: If chdir to home doesn't work, chdir to root instead.

Most importantly this fixes unlink_directory() when current directory
after dropping privileges can't be open()ed.

9 years agolib-storage: Minor error message fix
Timo Sirainen [Tue, 16 Aug 2016 11:04:13 +0000 (14:04 +0300)] 
lib-storage: Minor error message fix

9 years agolib-mail: Compiling fix for message-snippet change - U'x' isn't standard.
Timo Sirainen [Tue, 16 Aug 2016 08:05:25 +0000 (11:05 +0300)] 
lib-mail: Compiling fix for message-snippet change - U'x' isn't standard.

9 years agofts-squat: fix Corrupted squat uidlist bug
nikwrt [Tue, 29 Mar 2016 20:30:17 +0000 (22:30 +0200)] 
fts-squat: fix Corrupted squat uidlist bug

9 years agolib-mail: Fix snippet generation
Aki Tuomi [Mon, 15 Aug 2016 16:22:31 +0000 (19:22 +0300)] 
lib-mail: Fix snippet generation

Now we won't add leading whitespace for no reason, and also
strip BOM when found.

9 years agodcrypt: Fix encrypted test keys
Aki Tuomi [Mon, 15 Aug 2016 10:30:44 +0000 (13:30 +0300)] 
dcrypt: Fix encrypted test keys

9 years agodcrypt: Update v2 sample
Aki Tuomi [Mon, 15 Aug 2016 08:32:31 +0000 (11:32 +0300)] 
dcrypt: Update v2 sample

9 years agodcrypt: Retrieve key length correctly
Aki Tuomi [Mon, 15 Aug 2016 08:27:04 +0000 (11:27 +0300)] 
dcrypt: Retrieve key length correctly

9 years agolib: Avoid compiler warning if off_t has the same size as ssize_t.
Timo Sirainen [Sat, 13 Aug 2016 11:31:08 +0000 (14:31 +0300)] 
lib: Avoid compiler warning if off_t has the same size as ssize_t.

9 years agodsync: Further fixes to received_timestamp and virtual_size parsing (-t and -S parame...
Timo Sirainen [Sat, 13 Aug 2016 11:16:55 +0000 (14:16 +0300)] 
dsync: Further fixes to received_timestamp and virtual_size parsing (-t and -S parameters)

9 years agodsync: Added missing fields to ibc-stream.
Timo Sirainen [Fri, 12 Aug 2016 22:00:13 +0000 (01:00 +0300)] 
dsync: Added missing fields to ibc-stream.

9 years agolib: Implemented i_stream_create_copy_from_data().
Stephan Bosch [Thu, 11 Aug 2016 23:24:16 +0000 (01:24 +0200)] 
lib: Implemented i_stream_create_copy_from_data().

Unlike i_stream_create_from_data(), this function makes a copy of the provided data block. This way, the application does not need to worry about keeping it allocated for the lifetime of the stream.
The copied data is allocated durably on the system pool and freed once the stream is destroyed.

9 years agolib,lib-test: stop calling memcmp and memcpy with NULL in tests
Martti Rannanjärvi [Mon, 25 Jul 2016 07:24:44 +0000 (10:24 +0300)] 
lib,lib-test: stop calling memcmp and memcpy with NULL in tests

9 years agolib-mail: stop calling str_append_n and memcmp with NULL in tests
Martti Rannanjärvi [Mon, 25 Jul 2016 07:21:43 +0000 (10:21 +0300)] 
lib-mail: stop calling str_append_n and memcmp with NULL in tests

9 years agolib-storage: don't crash when pop3c-client timeouts
Martti Rannanjärvi [Wed, 10 Aug 2016 12:40:23 +0000 (15:40 +0300)] 
lib-storage: don't crash when pop3c-client timeouts

9 years agodoveadm-dump: Add missing include
Aki Tuomi [Thu, 11 Aug 2016 09:46:42 +0000 (12:46 +0300)] 
doveadm-dump: Add missing include

9 years ago-Wstrict-bool warning fixes
Timo Sirainen [Thu, 11 Aug 2016 14:27:24 +0000 (17:27 +0300)] 
-Wstrict-bool warning fixes

9 years agodoveadm sync: Fixed -S parameter parsing to actually work.
Timo Sirainen [Thu, 11 Aug 2016 14:23:48 +0000 (17:23 +0300)] 
doveadm sync: Fixed -S parameter parsing to actually work.

9 years agodoveadm sync/backup: Added -S <max size> parameter to skip too large mails.
Timo Sirainen [Fri, 1 Jul 2016 11:30:24 +0000 (14:30 +0300)] 
doveadm sync/backup: Added -S <max size> parameter to skip too large mails.

9 years agoauth-db-dict: Allow key name expansion
Aki Tuomi [Wed, 13 Jul 2016 06:51:08 +0000 (09:51 +0300)] 
auth-db-dict: Allow key name expansion

This allows expansion of dictionary keys based on userdb
variables on dict lookup mapping. Example:
key userdb {
  key = %{userdb:nspace:default}/userdb
  format = json
}

9 years agoopenssl: Fix v1.1 compability
Aki Tuomi [Tue, 9 Aug 2016 08:48:10 +0000 (11:48 +0300)] 
openssl: Fix v1.1 compability

9 years agoOpenSSL: link against OpenSSL libs explicitly
Aki Tuomi [Mon, 8 Aug 2016 12:31:50 +0000 (15:31 +0300)] 
OpenSSL: link against OpenSSL libs explicitly

9 years agodoveadm: add doveadm-dump-dcrypt-key
Martti Rannanjärvi [Sat, 23 Jul 2016 20:40:15 +0000 (23:40 +0300)] 
doveadm: add doveadm-dump-dcrypt-key

9 years agoquota: If quota lookup updates vsize header, lock it earlier to avoid a deadlock.
Timo Sirainen [Wed, 10 Aug 2016 16:15:56 +0000 (19:15 +0300)] 
quota: If quota lookup updates vsize header, lock it earlier to avoid a deadlock.

9 years agoquota: Fixed handling when mail size lookup fails due to mail already being expunged.
Timo Sirainen [Wed, 10 Aug 2016 16:13:09 +0000 (19:13 +0300)] 
quota: Fixed handling when mail size lookup fails due to mail already being expunged.

We don't want to fail it as a quota allocation failure, but just pass
through the "mail is expunged" error to the original caller.

9 years agodict-client: Improved timeout error message.
Timo Sirainen [Wed, 10 Aug 2016 14:56:14 +0000 (17:56 +0300)] 
dict-client: Improved timeout error message.

9 years agolib: Added connection_input_timeout_reason()
Timo Sirainen [Wed, 10 Aug 2016 14:54:29 +0000 (17:54 +0300)] 
lib: Added connection_input_timeout_reason()

9 years agolib: Added connection.connect_started/finished timestamps.
Timo Sirainen [Wed, 10 Aug 2016 14:44:26 +0000 (17:44 +0300)] 
lib: Added connection.connect_started/finished timestamps.

9 years agoconfigure: Fix dcrypt build
Aki Tuomi [Thu, 11 Aug 2016 11:28:24 +0000 (14:28 +0300)] 
configure: Fix dcrypt build

9 years agoquota: Don't get message sizes when updating mailbox that ignores quotas.
Timo Sirainen [Tue, 9 Aug 2016 15:06:25 +0000 (18:06 +0300)] 
quota: Don't get message sizes when updating mailbox that ignores quotas.

Nothing is done with the size anyway.

9 years agolib-storage: Fixed potential .vsize.lock deadlock.
Timo Sirainen [Wed, 10 Aug 2016 16:07:18 +0000 (19:07 +0300)] 
lib-storage: Fixed potential .vsize.lock deadlock.

9 years agoauth: Removed redundant noauthenticate checks.
Timo Sirainen [Wed, 10 Aug 2016 14:15:21 +0000 (17:15 +0300)] 
auth: Removed redundant noauthenticate checks.

Now that noauthenticate also adds nopassword field.

9 years agoauth: When setting noauthenticate=yes, also set nopassword=yes
Timo Sirainen [Wed, 10 Aug 2016 14:14:28 +0000 (17:14 +0300)] 
auth: When setting noauthenticate=yes, also set nopassword=yes

There are various places which check only "nopassword", but not
"noauthenticate".

9 years agolib: Added connection.last_input_tv for more accuracy
Timo Sirainen [Wed, 10 Aug 2016 14:41:51 +0000 (17:41 +0300)] 
lib: Added connection.last_input_tv for more accuracy

9 years agolib: connection_disconnect() now resets last_input
Timo Sirainen [Wed, 10 Aug 2016 14:37:53 +0000 (17:37 +0300)] 
lib: connection_disconnect() now resets last_input

If we reconnect, its value would otherwise be wrong.

9 years agoauth: Blocking userdb lookup shouldn't reset extra fields.
Timo Sirainen [Wed, 10 Aug 2016 14:11:13 +0000 (17:11 +0300)] 
auth: Blocking userdb lookup shouldn't reset extra fields.

9 years agologin-proxy: Fixed assert-crash/hang on connect errors.
Timo Sirainen [Wed, 10 Aug 2016 11:05:25 +0000 (14:05 +0300)] 
login-proxy: Fixed assert-crash/hang on connect errors.

The internal BUG would have left the host hanging. "Host is down" or any
immediate connect() error would have assert-crashed with:

Panic: file login-proxy.c: line 470 (login_proxy_disconnect): assertion failed: (proxy->state_rec->num_waiting_connections > 0)

9 years agolmtp: Reverted default port 24 change 1cbf46898.
Timo Sirainen [Tue, 9 Aug 2016 22:39:39 +0000 (01:39 +0300)] 
lmtp: Reverted default port 24 change 1cbf46898.

This might break some existing installation since otherwise the local port
is the default. So lets just keep it a v2.3.x change.

9 years agodoveadm: Fixed -A and -u wildcard handling with server connections.
Timo Sirainen [Mon, 8 Aug 2016 16:25:05 +0000 (19:25 +0300)] 
doveadm: Fixed -A and -u wildcard handling with server connections.

9 years agodoveadm: Fixed hanging when printing output from different server connections.
Timo Sirainen [Mon, 8 Aug 2016 16:24:08 +0000 (19:24 +0300)] 
doveadm: Fixed hanging when printing output from different server connections.

9 years agodoveadm: Avoid recursively calling server input callback
Timo Sirainen [Mon, 8 Aug 2016 16:22:15 +0000 (19:22 +0300)] 
doveadm: Avoid recursively calling server input callback

Probably doesn't fix anything, but it could cause confusing backtraces at
least.

9 years agodoveadm-server: Fixed potential hang when reading replies to multiple commands
Timo Sirainen [Mon, 8 Aug 2016 16:16:57 +0000 (19:16 +0300)] 
doveadm-server: Fixed potential hang when reading replies to multiple commands

9 years agodoveadm: Revert earlier NUL-printing change 793b024bf.
Timo Sirainen [Mon, 8 Aug 2016 16:11:16 +0000 (19:11 +0300)] 
doveadm: Revert earlier NUL-printing change 793b024bf.

It changes the output in ways that are a bit difficult to fix. Also the
the important part where NULs printing is useful is in a message body,
which should work even without this change. So for now just revert it.

9 years agolib-auth: Avoid crash after user iteration if connection failed.
Timo Sirainen [Mon, 8 Aug 2016 14:56:48 +0000 (17:56 +0300)] 
lib-auth: Avoid crash after user iteration if connection failed.

9 years agodoveadm: Removed unused code.
Timo Sirainen [Mon, 8 Aug 2016 14:13:15 +0000 (17:13 +0300)] 
doveadm: Removed unused code.

9 years agodoveadm: Extra safety - initialize cmd_input_fd to -1
Timo Sirainen [Mon, 8 Aug 2016 09:36:48 +0000 (12:36 +0300)] 
doveadm: Extra safety - initialize cmd_input_fd to -1

Just to be sure it's never attempted to be accessed as 0 (stdin) before
being initialized. (It didn't happen with current code as far as I know.)

9 years agodsync: Fixed empty-header-workaround
Timo Sirainen [Mon, 8 Aug 2016 13:15:26 +0000 (16:15 +0300)] 
dsync: Fixed empty-header-workaround

9 years agodsync_features: For consistency use '-' and not '_'
Timo Sirainen [Mon, 8 Aug 2016 13:06:50 +0000 (16:06 +0300)] 
dsync_features: For consistency use '-' and not '_'

Other _features and _workarounds settings use also '-'.

9 years agodoveadm: When printing input from doveadm-server, don't truncate at NUL.
Timo Sirainen [Mon, 8 Aug 2016 11:39:39 +0000 (14:39 +0300)] 
doveadm: When printing input from doveadm-server, don't truncate at NUL.

9 years agodoveadm: Pass connection to mail context
Aki Tuomi [Mon, 8 Aug 2016 10:21:34 +0000 (13:21 +0300)] 
doveadm: Pass connection to mail context

9 years agodoveadm: Use str_append_tabescaped_n
Aki Tuomi [Mon, 8 Aug 2016 08:38:54 +0000 (11:38 +0300)] 
doveadm: Use str_append_tabescaped_n

9 years agolib: Add binary-safe tabescape
Aki Tuomi [Mon, 8 Aug 2016 08:23:02 +0000 (11:23 +0300)] 
lib: Add binary-safe tabescape

9 years agodoveadm: Streamline tabunescape
Aki Tuomi [Mon, 8 Aug 2016 06:29:26 +0000 (09:29 +0300)] 
doveadm: Streamline tabunescape

9 years agodoveadm: add doveadm dump dcrypt-file
Martti Rannanjärvi [Wed, 3 Aug 2016 09:46:21 +0000 (12:46 +0300)] 
doveadm: add doveadm dump dcrypt-file

9 years agolib-dcrypt: make decrypt_istream format and flags visible
Martti Rannanjärvi [Sat, 6 Aug 2016 19:12:13 +0000 (22:12 +0300)] 
lib-dcrypt: make decrypt_istream format and flags visible

9 years agolib-dcrypt: add dcrypt-iostream.h
Martti Rannanjärvi [Sat, 6 Aug 2016 19:07:00 +0000 (22:07 +0300)] 
lib-dcrypt: add dcrypt-iostream.h

Move everything from dcrypt-iostream-private.h and enum
io_stream_encrypt_flags to the new dcrypt-iostream.h file.

9 years agodsync: Add support for features
Aki Tuomi [Fri, 5 Aug 2016 12:21:29 +0000 (15:21 +0300)] 
dsync: Add support for features

Add empty_header_workaround as first feature

9 years agoquota_clone plugin: quota_clone_mail_user_created warned without debug
J. Nick Koston [Sat, 9 Apr 2016 23:21:23 +0000 (18:21 -0500)] 
quota_clone plugin: quota_clone_mail_user_created warned without debug

"The quota_clone_dict setting is missing from configuration" warning
would be thrown when debug mode was not enabled.  This warning
happens under normal circumstances when prefix="" namespace is not
defined (usually when set to INBOX.)

See http://dovecot.org/list/dovecot-cvs/2012-October/021981.html for
more details on the automagic prefix="" namespace.

This change suppresses the spurious warning.

9 years agolmtp: Use port 24 if no port has been provided
Wido den Hollander [Sat, 9 Apr 2016 11:43:16 +0000 (13:43 +0200)] 
lmtp: Use port 24 if no port has been provided

This allows using the LMTP, IMAP and POP3 proxy on the same
Dovecot installation without the userdb providing the port
to connect to.

TCP port 24 is registered at IANA as: "any private mail system"

LMTP being the Local Mail Transfer Protocol classifies as a private
mail system and thus justifies the usage of port 24.

Prior to this patch the LTMP client would connect to TCP port 0 by
default if the userdb did not provide a port to connect to.

9 years agoistream-base64-encoder: Implemented proper stat function that returns the encoded...
Stephan Bosch [Sat, 6 Aug 2016 15:59:10 +0000 (17:59 +0200)] 
istream-base64-encoder: Implemented proper stat function that returns the encoded size of the stream.

For Base64 encoding, the size of the encoded data can be determined from the input data size exactly.

9 years agolib: ostream-temp didn't update offset when dup()ing fd.
Timo Sirainen [Mon, 8 Aug 2016 12:51:17 +0000 (15:51 +0300)] 
lib: ostream-temp didn't update offset when dup()ing fd.

9 years agodict-client: Fixed error message for failed synchronous dict_lookup()
Timo Sirainen [Fri, 5 Aug 2016 19:57:02 +0000 (22:57 +0300)] 
dict-client: Fixed error message for failed synchronous dict_lookup()

The error message was allocated from data stack, but freed too early.

9 years agolib-dcrypt: Added unit tests to nonblocking istream-decrypt
Timo Sirainen [Thu, 4 Aug 2016 18:44:08 +0000 (21:44 +0300)] 
lib-dcrypt: Added unit tests to nonblocking istream-decrypt

9 years agolib-dcrypt: test-stream writes now to buffer, not to temp-iostream
Timo Sirainen [Thu, 4 Aug 2016 18:38:30 +0000 (21:38 +0300)] 
lib-dcrypt: test-stream writes now to buffer, not to temp-iostream

This simplifies the following change.

9 years agolib-dcrypt: Support nonblocking istreams.
Timo Sirainen [Thu, 4 Aug 2016 18:29:14 +0000 (21:29 +0300)] 
lib-dcrypt: Support nonblocking istreams.

9 years agolib-dcrypt: add 0 to 400 byte stream test
Martti Rannanjärvi [Thu, 4 Aug 2016 16:45:35 +0000 (19:45 +0300)] 
lib-dcrypt: add 0 to 400 byte stream test

Remove 8 byte speacial case also.

9 years agolib-dcrypt: error message on missing decrypt key or password
Martti Rannanjärvi [Thu, 4 Aug 2016 15:35:53 +0000 (18:35 +0300)] 
lib-dcrypt: error message on missing decrypt key or password

Return a sensible error message when loading an encrypted private key is
attempted but the decrypt key or password is missing.

9 years agolib-http: Support per-request timeout and max_attempts
Timo Sirainen [Thu, 4 Aug 2016 14:11:20 +0000 (17:11 +0300)] 
lib-http: Support per-request timeout and max_attempts

9 years agodirector: Throttle user move/kill failure errors after 100/sec.
Timo Sirainen [Tue, 2 Aug 2016 20:25:57 +0000 (23:25 +0300)] 
director: Throttle user move/kill failure errors after 100/sec.

If it happened to a lot of users, they can take a lot of space in logs.

9 years agolib: Added log throttling API.
Timo Sirainen [Tue, 2 Aug 2016 20:14:23 +0000 (23:14 +0300)] 
lib: Added log throttling API.

9 years agolib-dcrypt: don't give strstr NULL in test-crypto
Martti Rannanjärvi [Thu, 4 Aug 2016 14:39:02 +0000 (17:39 +0300)] 
lib-dcrypt: don't give strstr NULL in test-crypto

9 years agoFixed searching multiple mailboxes
x16a0 [Fri, 15 Jul 2016 07:53:12 +0000 (09:53 +0200)] 
Fixed searching multiple mailboxes

When searching multiple mailboxes, a condition to search these mailboxes is added to the query string. However, this condition has to be separated from the preceding condition by a space (a '+' in this case, as it's encoded); otherwise, Solr considers it to be part of the previous condition, in which case it will fail to parse it properly. Therefore, this patch adds that one missing character so it works again.

9 years agolib-dcrypt: Fixed test-stream unit test not to leak memory
Timo Sirainen [Thu, 4 Aug 2016 19:15:25 +0000 (22:15 +0300)] 
lib-dcrypt: Fixed test-stream unit test not to leak memory

Broken by previous change.

9 years agolib-auth: Unescape passdb/userdb extra fields.
Timo Sirainen [Thu, 4 Aug 2016 18:51:18 +0000 (21:51 +0300)] 
lib-auth: Unescape passdb/userdb extra fields.

This only affected \001, \t, \r and \n characters which were left
tab-escaped (e.g. \t as "\001t").

9 years agoistream-decrypt: Fix error handling in stream header
Aki Tuomi [Thu, 4 Aug 2016 17:21:27 +0000 (20:21 +0300)] 
istream-decrypt: Fix error handling in stream header

9 years agolib-dcrypt: Skip checks if no backend found
Aki Tuomi [Thu, 4 Aug 2016 16:39:56 +0000 (19:39 +0300)] 
lib-dcrypt: Skip checks if no backend found

9 years agodirector: Added more debug information to "Ping timed out" error
Timo Sirainen [Tue, 2 Aug 2016 19:31:50 +0000 (22:31 +0300)] 
director: Added more debug information to "Ping timed out" error

9 years agolib-dcrypt: drop format from key_load_public
Martti Rannanjärvi [Thu, 4 Aug 2016 09:57:58 +0000 (12:57 +0300)] 
lib-dcrypt: drop format from key_load_public

9 years agolib-dcrypt: drop format from key_load_private
Martti Rannanjärvi [Thu, 4 Aug 2016 09:52:20 +0000 (12:52 +0300)] 
lib-dcrypt: drop format from key_load_private

9 years agolib-dcrypt: get_info in openssl_load_private_key
Martti Rannanjärvi [Thu, 4 Aug 2016 09:19:05 +0000 (12:19 +0300)] 
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.

9 years agolib-dcrypt: get_info in openssl_load_public_key
Martti Rannanjärvi [Thu, 4 Aug 2016 07:54:20 +0000 (10:54 +0300)] 
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.

9 years agolib-dcrypt: change v2 key field separator to ':'
Martti Rannanjärvi [Wed, 3 Aug 2016 14:55:15 +0000 (17:55 +0300)] 
lib-dcrypt: change v2 key field separator to ':'

9 years agolib-dcrypt: Do not unref key twice
Aki Tuomi [Thu, 4 Aug 2016 12:57:22 +0000 (15:57 +0300)] 
lib-dcrypt: Do not unref key twice

9 years agolib-dcrypt: Handle short reads in header correctly
Aki Tuomi [Wed, 3 Aug 2016 07:14:35 +0000 (10:14 +0300)] 
lib-dcrypt: Handle short reads in header correctly

9 years agolib-dcrypt: add crashing 8 byte garbage read test
Martti Rannanjärvi [Mon, 25 Jul 2016 11:04:47 +0000 (14:04 +0300)] 
lib-dcrypt: add crashing 8 byte garbage read test

9 years agodcrypt: Update API for testing
Aki Tuomi [Fri, 15 Jul 2016 13:31:01 +0000 (16:31 +0300)] 
dcrypt: Update API for testing

9 years agodcrypt-iostream: Ref/unref keys
Aki Tuomi [Fri, 15 Jul 2016 13:30:51 +0000 (16:30 +0300)] 
dcrypt-iostream: Ref/unref keys

9 years agodcrypt: Use refcounting on keys
Aki Tuomi [Fri, 15 Jul 2016 13:27:03 +0000 (16:27 +0300)] 
dcrypt: Use refcounting on keys

9 years agolast-login: Add error handling for commit
Aki Tuomi [Thu, 4 Aug 2016 05:55:12 +0000 (08:55 +0300)] 
last-login: Add error handling for commit

9 years agolib-index: Fixed debug logging.
Timo Sirainen [Wed, 3 Aug 2016 10:18:17 +0000 (13:18 +0300)] 
lib-index: Fixed debug logging.

9 years agolib-index: If mail_debug=yes, log cache compressions.
Timo Sirainen [Thu, 28 Jul 2016 22:02:29 +0000 (01:02 +0300)] 
lib-index: If mail_debug=yes, log cache compressions.

9 years agoUse mail_get_*stream_because() wherever possible.
Timo Sirainen [Mon, 25 Jul 2016 18:20:05 +0000 (14:20 -0400)] 
Use mail_get_*stream_because() wherever possible.

9 years agolib-index: Added mail_cache_get_missing_reason()
Timo Sirainen [Thu, 28 Jul 2016 21:37:07 +0000 (00:37 +0300)] 
lib-index: Added mail_cache_get_missing_reason()

9 years agolib-storage: Added mail_get_stream_because() and mail_get_hdr_stream_because()
Timo Sirainen [Mon, 25 Jul 2016 18:16:39 +0000 (14:16 -0400)] 
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.

9 years agodoveadm proxy kick: Fixed output message.
Timo Sirainen [Tue, 2 Aug 2016 18:16:15 +0000 (21:16 +0300)] 
doveadm proxy kick: Fixed output message.

9 years agolib-lda: Support %{storage_id} in deliver_log_format
Timo Sirainen [Tue, 2 Aug 2016 18:10:42 +0000 (21:10 +0300)] 
lib-lda: Support %{storage_id} in deliver_log_format

9 years agolib-lda: Code cleanup - move code to mail_deliver_open_mail()
Timo Sirainen [Tue, 2 Aug 2016 18:09:34 +0000 (21:09 +0300)] 
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.

9 years agoimap: When un-hibernating, send notification to imap-hibernate process earlier.
Timo Sirainen [Tue, 2 Aug 2016 17:09:49 +0000 (20:09 +0300)] 
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.