]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
8 years agoglobal: Remove extra ';' to fix compiler errors
Timo Sirainen [Fri, 7 Apr 2017 06:34:39 +0000 (09:34 +0300)] 
global: Remove extra ';' to fix compiler errors

Sun C doesn't like them.

8 years agoglobal: Make sure all files end with newline
Timo Sirainen [Fri, 7 Apr 2017 06:32:30 +0000 (09:32 +0300)] 
global: Make sure all files end with newline

Fixes compiler warnings with Sun C.

8 years agofs-posix: Fix FS_METADATA_WRITE_FNAME to preserve the path
Timo Sirainen [Fri, 7 Apr 2017 07:55:40 +0000 (10:55 +0300)] 
fs-posix: Fix FS_METADATA_WRITE_FNAME to preserve the path

It should only change the filename.

8 years agodoveadm force-resync: Skip autocreated mailboxes that don't exist yet.
Timo Sirainen [Fri, 7 Apr 2017 09:45:49 +0000 (12:45 +0300)] 
doveadm force-resync: Skip autocreated mailboxes that don't exist yet.

Since they don't exist, there's nothing to resync in them either.
This avoids unnecessarily creating them.

8 years agodict-sql: Fix setting $variables to iteration key when map had multiple values
Timo Sirainen [Fri, 7 Apr 2017 09:42:12 +0000 (12:42 +0300)] 
dict-sql: Fix setting $variables to iteration key when map had multiple values

8 years agolib: Redefine NULL only if HAVE_TYPE_CHECKS is set
Timo Sirainen [Fri, 7 Apr 2017 06:14:27 +0000 (09:14 +0300)] 
lib: Redefine NULL only if HAVE_TYPE_CHECKS is set

8 years agolib: Add a common HAVE_TYPE_CHECKS
Timo Sirainen [Fri, 7 Apr 2017 06:11:53 +0000 (09:11 +0300)] 
lib: Add a common HAVE_TYPE_CHECKS

I'm not sure if it should be checking gcc >= 3.0 or 3.3, but they're
all old so doesn't really matter.

The __cplusplus check was added to both, since it wouldn't have done
anything anyway as COMPILE_ERROR_IF_TRUE() is 0 for __cplusplus.

8 years ago*-login: Minor logging cleanup if client is disconnected before sending banner.
Timo Sirainen [Wed, 5 Apr 2017 12:59:51 +0000 (15:59 +0300)] 
*-login: Minor logging cleanup if client is disconnected before sending banner.

Avoid unnecessarily adding "(no auth attempts in 0 secs)" when the reason
string already makes it clear that the user didn't even have a chance to
authenticate.

This kind of disconnection currently happens only with some plugins.

8 years agoexample-config: Add connect/read/write_timeout to mysql connect settings
Timo Sirainen [Thu, 6 Apr 2017 17:43:20 +0000 (20:43 +0300)] 
example-config: Add connect/read/write_timeout to mysql connect settings

8 years agoimapc: Remove "_sec" suffix from imapc_connection_retry_interval_secs
Timo Sirainen [Thu, 6 Apr 2017 17:00:31 +0000 (20:00 +0300)] 
imapc: Remove "_sec" suffix from imapc_connection_retry_interval_secs

Its type is SET_TIME, so the value doesn't have to be in seconds.

8 years agoimap-login: Retain client ID only when enabled
Aki Tuomi [Thu, 6 Apr 2017 16:49:07 +0000 (19:49 +0300)] 
imap-login: Retain client ID only when enabled

8 years agolib-storage: Set internal error in imapc_list_get_hierarchy_sep
Aki Tuomi [Wed, 5 Apr 2017 11:23:47 +0000 (14:23 +0300)] 
lib-storage: Set internal error in imapc_list_get_hierarchy_sep

8 years agoimapc: Use IMAPC_COMMAND_STATE_AUTH_FAILED to indicate auth failure
Aki Tuomi [Wed, 5 Apr 2017 11:23:26 +0000 (14:23 +0300)] 
imapc: Use IMAPC_COMMAND_STATE_AUTH_FAILED to indicate auth failure

8 years agolib-imap-client: Do not reset ips when reconnecting
Aki Tuomi [Wed, 5 Apr 2017 11:22:38 +0000 (14:22 +0300)] 
lib-imap-client: Do not reset ips when reconnecting

Avoids infinite loop

8 years agolib-storage: Return empty value in imapc_list_get_storage_name on auth error
Aki Tuomi [Wed, 5 Apr 2017 10:27:57 +0000 (13:27 +0300)] 
lib-storage: Return empty value in imapc_list_get_storage_name on auth error

Avoids clobbering authentication error.

8 years agolib-storage: Do not clobber error with imapc
Aki Tuomi [Wed, 5 Apr 2017 09:48:31 +0000 (12:48 +0300)] 
lib-storage: Do not clobber error with imapc

8 years agoglobal: Fix imapc_client_login usage
Aki Tuomi [Wed, 5 Apr 2017 09:47:24 +0000 (12:47 +0300)] 
global: Fix imapc_client_login usage

8 years agolib-imap-client: Add login_callback setter
Aki Tuomi [Wed, 5 Apr 2017 09:09:57 +0000 (12:09 +0300)] 
lib-imap-client: Add login_callback setter

This way it can be set before actually calling login
which might happen some time later.

8 years agoimapc: Fix memory leak in disconnected state
Dmitry Yakunin [Tue, 4 Apr 2017 20:33:51 +0000 (23:33 +0300)] 
imapc: Fix memory leak in disconnected state

8 years agoauth: Update default policy string to include device id and protocol
Aki Tuomi [Wed, 5 Apr 2017 06:26:54 +0000 (09:26 +0300)] 
auth: Update default policy string to include device id and protocol

8 years agoimap: Set command reason strings using the new human_args
Timo Sirainen [Tue, 4 Apr 2017 12:59:04 +0000 (15:59 +0300)] 
imap: Set command reason strings using the new human_args

This way the reason string is already suitable for logging, since it's
guaranteed to be valid UTF-8 without control chars.

8 years agoimap: Add client_command_context.human_args
Timo Sirainen [Tue, 4 Apr 2017 12:58:42 +0000 (15:58 +0300)] 
imap: Add client_command_context.human_args

Generated with imap_write_args_for_human()

8 years agolib-imap: Add imap_write_args_for_human()
Timo Sirainen [Tue, 4 Apr 2017 12:58:15 +0000 (15:58 +0300)] 
lib-imap: Add imap_write_args_for_human()

8 years agoimap: Add imap_client_command_get_reason()
Timo Sirainen [Tue, 4 Apr 2017 12:38:00 +0000 (15:38 +0300)] 
imap: Add imap_client_command_get_reason()

All the command -> reason string conversions now go through this function.

8 years agolib: Increase net_connect*() EADDRNOTAVAIL retries to 20
Timo Sirainen [Tue, 4 Apr 2017 10:28:44 +0000 (13:28 +0300)] 
lib: Increase net_connect*() EADDRNOTAVAIL retries to 20

4 is too little, since on busy systems it's sometimes failing. These calls
should be pretty cheap, so lets try if 20 is enough.

It would be nice if this was configurable, but the only practical way right
now would be to use environment variable, which is a bit ugly. We could
try it next if 20 is still not enough.

8 years agoconfig: Warn that director_consistent_hashing is obsolete
Martti Rannanjärvi [Tue, 4 Apr 2017 04:42:48 +0000 (07:42 +0300)] 
config: Warn that director_consistent_hashing is obsolete

8 years agoimapc: Compiler warning fix for 32bit systems
Timo Sirainen [Mon, 3 Apr 2017 15:44:52 +0000 (18:44 +0300)] 
imapc: Compiler warning fix for 32bit systems

8 years agodirector: Make director_consistent_hashing=yes mandatory
Martti Rannanjärvi [Mon, 3 Apr 2017 11:30:13 +0000 (14:30 +0300)] 
director: Make director_consistent_hashing=yes mandatory

8 years agolib-imap-client: Make authentication failures more consistent
Aki Tuomi [Fri, 31 Mar 2017 07:57:14 +0000 (10:57 +0300)] 
lib-imap-client: Make authentication failures more consistent

This way they always say the same prefix, which is easier to
spot.

8 years agolib-imap-client: Call login_callback on all authentication failures
Aki Tuomi [Fri, 31 Mar 2017 07:49:50 +0000 (10:49 +0300)] 
lib-imap-client: Call login_callback on all authentication failures

8 years agolib-imap-client: Fix reconnection
Aki Tuomi [Fri, 31 Mar 2017 07:12:58 +0000 (10:12 +0300)] 
lib-imap-client: Fix reconnection

This patch fixes reconnections to actually consider
all IP addresses first and then delay for interval and
retry at most retry count times.

8 years agolib-imap-client: Remove io earlier to avoid hammering
Aki Tuomi [Fri, 31 Mar 2017 08:01:15 +0000 (11:01 +0300)] 
lib-imap-client: Remove io earlier to avoid hammering

If connection has failed and reconnection is not yet
possible, io has to be removed here, otherwise it will
keep hammering the callback.

8 years agolib-imap-client: Only LOGOUT from connected connections
Aki Tuomi [Fri, 31 Mar 2017 07:58:47 +0000 (10:58 +0300)] 
lib-imap-client: Only LOGOUT from connected connections

8 years agolib-imap-client: Make retry count and interval configurable
Aki Tuomi [Fri, 31 Mar 2017 06:44:28 +0000 (09:44 +0300)] 
lib-imap-client: Make retry count and interval configurable

8 years agolib-imap-client: Add imapc_client_try_stop
Aki Tuomi [Fri, 31 Mar 2017 06:59:02 +0000 (09:59 +0300)] 
lib-imap-client: Add imapc_client_try_stop

8 years agolib-sasl: Add missing input handler for xoauth2
Aki Tuomi [Thu, 30 Mar 2017 13:09:06 +0000 (16:09 +0300)] 
lib-sasl: Add missing input handler for xoauth2

8 years agodirector: Fix mail_hosts_dup() to duplicate tags correctly.
Timo Sirainen [Mon, 3 Apr 2017 09:40:51 +0000 (12:40 +0300)] 
director: Fix mail_hosts_dup() to duplicate tags correctly.

The host->tag pointed to the old hosts list. Also the new hosts list's tags
array wasn't filled.

This fixes USER-LOOKUP to return host with default configuration, which fixes
doveadm director status <user> to not show "Initial config" as empty.

8 years agodoveadm: Call mailbox_set_reason with initialized mailbox
Martti Rannanjärvi [Mon, 3 Apr 2017 08:41:29 +0000 (11:41 +0300)] 
doveadm: Call mailbox_set_reason with initialized mailbox

8 years agoglobal: Add mailbox_transaction_set_reason() calls
Timo Sirainen [Sat, 1 Apr 2017 19:12:37 +0000 (22:12 +0300)] 
global: Add mailbox_transaction_set_reason() calls

Added to the most important places.

8 years agolib-storage: Add mailbox_transaction_set_reason()
Timo Sirainen [Sat, 1 Apr 2017 18:54:30 +0000 (21:54 +0300)] 
lib-storage: Add mailbox_transaction_set_reason()

8 years agoglobal: Add mailbox_set_reason() calls
Timo Sirainen [Sat, 1 Apr 2017 18:43:16 +0000 (21:43 +0300)] 
global: Add mailbox_set_reason() calls

Added to the most important places.

8 years agolib-storage: Add mailbox_set_reason()
Timo Sirainen [Sat, 1 Apr 2017 18:16:37 +0000 (21:16 +0300)] 
lib-storage: Add mailbox_set_reason()

Use it to log a debug message when mailbox is being opened.

8 years agolib-index: Don't increase modseq for backend/dirty flag changes
Timo Sirainen [Mon, 27 Mar 2017 15:05:29 +0000 (18:05 +0300)] 
lib-index: Don't increase modseq for backend/dirty flag changes

These flags are used only for internal changes and they shouldn't be
triggering any modseq changes.

To avoid modseqs from unexpectedly shrinking, the new modseq counting
behavior is enabled only for newly rotated transaction log files that have
a new minor_version.

8 years agolib-index: Add macros to check if transaction log file version is new enough.
Timo Sirainen [Thu, 30 Mar 2017 17:38:44 +0000 (20:38 +0300)] 
lib-index: Add macros to check if transaction log file version is new enough.

The version numbers are 8bit, so we can generate a single 16bit number out
of them.

8 years agolib-http: client: Implemented means to obtain request statistics.
Stephan Bosch [Tue, 28 Mar 2017 23:25:21 +0000 (01:25 +0200)] 
lib-http: client: Implemented means to obtain request statistics.

8 years agolib: Fix strcasecmp mistake in var-expand
Aki Tuomi [Fri, 31 Mar 2017 20:12:47 +0000 (23:12 +0300)] 
lib: Fix strcasecmp mistake in var-expand

8 years agolmtp: Die at startup if config reading fails.
Timo Sirainen [Fri, 31 Mar 2017 13:42:55 +0000 (16:42 +0300)] 
lmtp: Die at startup if config reading fails.

Although most of the time it's not strictly required for config to be read here,
one exception is SSL server settings. If this config reading fails, the SSL
initialization just crashes. So this gives a better error message than a crash.
Also config reading really isn't supposed to fail anyway.

8 years agolib-index: Assert in mail_index_append_finish_uids() to prevent UID wrapping
Timo Sirainen [Thu, 30 Mar 2017 20:25:40 +0000 (23:25 +0300)] 
lib-index: Assert in mail_index_append_finish_uids() to prevent UID wrapping

This should be handled better eventually, but it's better to crash earlier
now than later. This avoids a later assert:

Panic: file mail-index-transaction-finish.c: line 187 (mail_index_transaction_get_uid): assertion failed: (rec->uid != 0)

8 years agolib-fs: Add FS_METADATA_ORIG_PATH
Timo Sirainen [Fri, 31 Mar 2017 09:28:56 +0000 (12:28 +0300)] 
lib-fs: Add FS_METADATA_ORIG_PATH

This allows fs backends to keep track of the original filename and use it
for logging purposes and such.

8 years agolib-fs: Allow fs_set_metadata() to update already added metadata.
Timo Sirainen [Fri, 31 Mar 2017 09:28:01 +0000 (12:28 +0300)] 
lib-fs: Allow fs_set_metadata() to update already added metadata.

Previously we were just appending the metadata multiple times with different
values, which could have caused problems.

8 years agoquota, acl: Use mail_user_plugin_getenv_bool() for boolean settings
Timo Sirainen [Thu, 30 Mar 2017 13:43:58 +0000 (16:43 +0300)] 
quota, acl: Use mail_user_plugin_getenv_bool() for boolean settings

These were forgotten earlier.

8 years agoimap: Fix assert-crash when hibernation triggers during IDLE syncing
Timo Sirainen [Thu, 30 Mar 2017 22:02:49 +0000 (01:02 +0300)] 
imap: Fix assert-crash when hibernation triggers during IDLE syncing

Fixes:
Panic: file cmd-idle.c: line 182 (idle_hibernate_timeout): assertion failed: (ctx->sync_ctx == NULL)

8 years agolib-http: http_client_request_delay_from_response() should use per-request timeout...
Timo Sirainen [Thu, 30 Mar 2017 20:46:02 +0000 (23:46 +0300)] 
lib-http: http_client_request_delay_from_response() should use per-request timeout as max

It was using the global request_timeout_msecs for the maximum timeout,
which could be different from the per-request timeout set by
http_client_request_set_attempt_timeout_msecs().

8 years agolib-http: client: Fixed request-specific attempt timeout.
Stephan Bosch [Thu, 30 Mar 2017 20:29:13 +0000 (22:29 +0200)] 
lib-http: client: Fixed request-specific attempt timeout.

This is the timeout applied to a single request attempt. Using http_client_request_set_attempt_timeout_msecs() this can be set for a specific request.
However, this was mostly ignored for requests that weren't in the process of handling response payload.
Instead, the global request_timeout_msecs client setting was used.

Also amended the (currently manual) test suite with tests that demonstated the problem and now verify the fix.

8 years agolib-index: Use time_to_local_day_start() instead of reimplementing
Timo Sirainen [Tue, 28 Mar 2017 16:40:27 +0000 (19:40 +0300)] 
lib-index: Use time_to_local_day_start() instead of reimplementing

8 years agolib: Add time_to_local_day_start()
Timo Sirainen [Tue, 28 Mar 2017 16:14:00 +0000 (19:14 +0300)] 
lib: Add time_to_local_day_start()

8 years agolib-index: Code cleanup - expand LOG_WANT_ROTATE() macro
Timo Sirainen [Mon, 27 Mar 2017 14:44:45 +0000 (17:44 +0300)] 
lib-index: Code cleanup - expand LOG_WANT_ROTATE() macro

There was no reason it had to be a macro. Also this fixes off-by-one
error when checking for log_rotate_min_size.

8 years agovar-expand-crypt-plugin: Add test suite
Aki Tuomi [Mon, 27 Mar 2017 07:33:42 +0000 (10:33 +0300)] 
var-expand-crypt-plugin: Add test suite

8 years agovar-expand-crypt: Fix data decryption
Aki Tuomi [Mon, 27 Mar 2017 08:02:31 +0000 (11:02 +0300)] 
var-expand-crypt: Fix data decryption

8 years agovar-expand-crypt: Add error handling for initialization
Aki Tuomi [Mon, 27 Mar 2017 06:39:03 +0000 (09:39 +0300)] 
var-expand-crypt: Add error handling for initialization

8 years agovar-expand-crypt: Do not free dcrypt context twice
Aki Tuomi [Mon, 27 Mar 2017 06:34:50 +0000 (09:34 +0300)] 
var-expand-crypt: Do not free dcrypt context twice

Found by coverity

8 years agotest: lib-http: Check write_full return value in test
Aki Tuomi [Fri, 17 Mar 2017 08:28:36 +0000 (10:28 +0200)] 
test: lib-http: Check write_full return value in test

Makes static analyzers happier

8 years agotest: fts-squat: Ignore gettimeofday return value in test
Aki Tuomi [Fri, 17 Mar 2017 08:26:50 +0000 (10:26 +0200)] 
test: fts-squat: Ignore gettimeofday return value in test

Makes static analyzers happier

8 years agotest: lib-index: Ensure conficts_seqs is created in test
Aki Tuomi [Fri, 17 Mar 2017 08:26:06 +0000 (10:26 +0200)] 
test: lib-index: Ensure conficts_seqs is created in test

Makes static analyzers happier

8 years agotest: lib: Ensure item is not null
Aki Tuomi [Fri, 17 Mar 2017 08:25:01 +0000 (10:25 +0200)] 
test: lib: Ensure item is not null

Makes static analyzers happier

8 years agotest: lib-program-client: Use i_close_fd instead of close
Aki Tuomi [Fri, 17 Mar 2017 08:23:42 +0000 (10:23 +0200)] 
test: lib-program-client: Use i_close_fd instead of close

8 years agotest: lib-program-client: Ignore some return values in test server
Aki Tuomi [Fri, 17 Mar 2017 08:23:14 +0000 (10:23 +0200)] 
test: lib-program-client: Ignore some return values in test server

Makes static analyzers happier

8 years agotest: lib: Check o_stream_flush return value in proxy test
Aki Tuomi [Fri, 17 Mar 2017 08:21:25 +0000 (10:21 +0200)] 
test: lib: Check o_stream_flush return value in proxy test

Makes static analyzers happier

8 years agotest: lib-fts: Ignore uni_utf8_get_valid_data return value
Aki Tuomi [Fri, 17 Mar 2017 08:19:17 +0000 (10:19 +0200)] 
test: lib-fts: Ignore uni_utf8_get_valid_data return value

Makes static analyzers happier

8 years agotest: mail-crypt: Check dcrypt_id_key_private_old return value
Aki Tuomi [Fri, 17 Mar 2017 08:17:59 +0000 (10:17 +0200)] 
test: mail-crypt: Check dcrypt_id_key_private_old return value

Makes static analyzers happier

8 years agotest: lib-http: Check o_stream_send return value
Aki Tuomi [Fri, 17 Mar 2017 08:16:11 +0000 (10:16 +0200)] 
test: lib-http: Check o_stream_send return value

Makes static analyzers happier

8 years agotest: lib: Check o_stream_send return value
Aki Tuomi [Fri, 17 Mar 2017 08:13:59 +0000 (10:13 +0200)] 
test: lib: Check o_stream_send return value

Make static analyzers happier

8 years agodriver-cassandra: Add metric for slow queries
Aki Tuomi [Mon, 27 Mar 2017 16:50:53 +0000 (19:50 +0300)] 
driver-cassandra: Add metric for slow queries

8 years agopush-notification-driver-ox: Wait for http requests to finish in deinit
Martti Rannanjärvi [Wed, 29 Mar 2017 17:04:47 +0000 (20:04 +0300)] 
push-notification-driver-ox: Wait for http requests to finish in deinit

This is to make sure mail_user is still usable in http response
callback.

8 years agodirector: Log vhost count changes and HOST-UP/DOWN
Martti Rannanjärvi [Thu, 30 Mar 2017 12:53:59 +0000 (15:53 +0300)] 
director: Log vhost count changes and HOST-UP/DOWN

8 years agomaster: When logging fork() EAGAIN failure, include current ulimit -u value
Timo Sirainen [Wed, 29 Mar 2017 22:42:53 +0000 (01:42 +0300)] 
master: When logging fork() EAGAIN failure, include current ulimit -u value

8 years agodoveadm dump log: Use shared lib-index code for updating modseq
Timo Sirainen [Mon, 27 Mar 2017 13:33:30 +0000 (16:33 +0300)] 
doveadm dump log: Use shared lib-index code for updating modseq

When MAIL_TRANSACTION_MODSEQ_UPDATE records were seen, the printed modseqs
afterwards weren't correct.

Now that mail_transaction_update_modseq() is used, we don't need to keep
this code synchronized with it.

8 years agodoveadm dump log: Cleanup - don't change hdr.size
Timo Sirainen [Mon, 27 Mar 2017 13:30:16 +0000 (16:30 +0300)] 
doveadm dump log: Cleanup - don't change hdr.size

Needed by the next commit.

8 years agodoveadm dump log: Use istream for reading the file.
Timo Sirainen [Mon, 27 Mar 2017 13:26:09 +0000 (16:26 +0300)] 
doveadm dump log: Use istream for reading the file.

Cleans up the code a bit and removes the 1MB record limit.

8 years agolib-storage: Fix potential dict transaction leak on transaction rollback.
Timo Sirainen [Wed, 29 Mar 2017 10:28:36 +0000 (13:28 +0300)] 
lib-storage: Fix potential dict transaction leak on transaction rollback.

8 years agolib-dict: Keep a linked list of all transactions in dict.
Timo Sirainen [Wed, 29 Mar 2017 10:27:32 +0000 (13:27 +0300)] 
lib-dict: Keep a linked list of all transactions in dict.

This helps debugging if a transaction is leaked.

8 years agoauth: Do not cache username unless it was changed by lookup
Aki Tuomi [Wed, 29 Mar 2017 13:15:36 +0000 (16:15 +0300)] 
auth: Do not cache username unless it was changed by lookup

This could've caused usernames to be unexpectedly changed
because they were cached by a lookup that did not include
username in the cache key.

8 years agoauth: Mark username changed if it's changes in auth_request_try_update_username
Aki Tuomi [Wed, 29 Mar 2017 12:37:36 +0000 (15:37 +0300)] 
auth: Mark username changed if it's changes in auth_request_try_update_username

It was forgotten in by 865a82c1

8 years agolib: Add uuid support to guid
Aki Tuomi [Tue, 7 Mar 2017 11:32:15 +0000 (13:32 +0200)] 
lib: Add uuid support to guid

8 years agomail-log: Differentiate autoexpunges from expunges
Aki Tuomi [Thu, 23 Mar 2017 12:09:01 +0000 (14:09 +0200)] 
mail-log: Differentiate autoexpunges from expunges

8 years agolib-storage: Indicate mail is being autoexpunged
Aki Tuomi [Thu, 23 Mar 2017 12:08:30 +0000 (14:08 +0200)] 
lib-storage: Indicate mail is being autoexpunged

This way plugins, such as mail_log, can detect this.

8 years agoconfig: Don't stop the process due to idling.
Timo Sirainen [Mon, 27 Mar 2017 12:28:01 +0000 (15:28 +0300)] 
config: Don't stop the process due to idling.

If the config process restarts, it also reloads configuration. We'd rather
want the configuration reloads to always be explicit.

8 years agocassandra: Fallback consistency fix - it wasn't used permanently
Timo Sirainen [Mon, 27 Mar 2017 10:44:13 +0000 (13:44 +0300)] 
cassandra: Fallback consistency fix - it wasn't used permanently

Because the "do I want to retry using primary consistency?" check was done
using the first failure timestamp, after 60 seconds that check always
returned TRUE. We should instead be checking the last timestamp for a
query that was sent with the primary consistency.

8 years agocassandra: Fallback consistency fix - max retry interval was set wrong
Timo Sirainen [Mon, 27 Mar 2017 10:33:18 +0000 (13:33 +0300)] 
cassandra: Fallback consistency fix - max retry interval was set wrong

The maximum msecs is _MAX_RETRY_MSECS, not _FIRST_RETRY_MSECS

8 years agolib-http: client: Fix aborting a request that has a delayed error.
Stephan Bosch [Sun, 26 Mar 2017 17:08:18 +0000 (19:08 +0200)] 
lib-http: client: Fix aborting a request that has a delayed error.

Caused by recent changes in delayed error handling.

8 years agoimapc: Add imapc_features=delay-login
Timo Sirainen [Sun, 19 Mar 2017 13:35:14 +0000 (15:35 +0200)] 
imapc: Add imapc_features=delay-login

The connection to imapc_host is delayed until it's actually needed to be
performed.

8 years agoimap: Remove imapc-specific "is connection valid?" code
Timo Sirainen [Sun, 19 Mar 2017 13:34:20 +0000 (15:34 +0200)] 
imap: Remove imapc-specific "is connection valid?" code

This is now done by imapc itself in the previous patch

8 years agoimapc: Fail user creation if login to imapc_host fails.
Timo Sirainen [Sun, 19 Mar 2017 13:32:53 +0000 (15:32 +0200)] 
imapc: Fail user creation if login to imapc_host fails.

This causes imapc to actually wait for the login to succeed or fail.
Such a wait was already done by the imap code, which will be removed by
the next patch.

8 years agoquota: Add backend register/unregister
Aki Tuomi [Sat, 25 Mar 2017 13:46:58 +0000 (15:46 +0200)] 
quota: Add backend register/unregister

This way, other mail plugins can register their own
quota backends.

8 years agolib-mail: Fix read overflow / crash in message_header_decode()
Timo Sirainen [Fri, 24 Mar 2017 12:46:05 +0000 (14:46 +0200)] 
lib-mail: Fix read overflow / crash in message_header_decode()

If the input string was "=?charset?Q|B?text?", the code attempted to look up
the character after it. And if it was "=", the callback was called with
size=-1, which ends up in a crash.

8 years agossl: deprecate no_compression in ssl_options
Martti Rannanjärvi [Tue, 29 Nov 2016 07:38:21 +0000 (09:38 +0200)] 
ssl: deprecate no_compression in ssl_options

Compression is now disabled by default.

8 years agodoc: mention no_ticket in ssl config example
Martti Rannanjärvi [Fri, 16 Dec 2016 20:18:02 +0000 (22:18 +0200)] 
doc: mention no_ticket in ssl config example

8 years agodoc: remove obsolete ssl_dh_parameters_length from example config
Martti Rannanjärvi [Fri, 16 Dec 2016 20:25:38 +0000 (22:25 +0200)] 
doc: remove obsolete ssl_dh_parameters_length from example config

8 years agossl: change to more secure default ssl_cipher_list
Martti Rannanjärvi [Mon, 19 Dec 2016 09:59:18 +0000 (11:59 +0200)] 
ssl: change to more secure default ssl_cipher_list

8 years agoimap-login: Move forward_fields updating code to login-common
Timo Sirainen [Thu, 23 Mar 2017 18:16:44 +0000 (20:16 +0200)] 
imap-login: Move forward_fields updating code to login-common

This allows using the new client_add_forward_field() in e.g. plugins.