]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Aki Tuomi [Mon, 29 Feb 2016 07:35:03 +0000 (09:35 +0200)]
doveadm-mail-index: Use integer parameter type
Timo Sirainen [Sun, 28 Feb 2016 20:23:03 +0000 (22:23 +0200)]
lib-storage: When cached mime.parts is detected to be inconsistent, log it as hex-encoded.
Timo Sirainen [Sun, 28 Feb 2016 20:22:06 +0000 (22:22 +0200)]
lib-storage: If cached mime.parts is corrupted, log it hex-encoded.
Timo Sirainen [Sun, 28 Feb 2016 20:08:40 +0000 (22:08 +0200)]
lib-mail: message_search_msg() passes through message_parser_deinit_from_parts()'s error string
Timo Sirainen [Sun, 28 Feb 2016 19:07:27 +0000 (21:07 +0200)]
Use mail_set_cache_corrupted_reason() wherever possible.
Timo Sirainen [Sun, 28 Feb 2016 19:05:48 +0000 (21:05 +0200)]
lib-storage: mail_set_cache_corrupted*() now logs also the mailbox name that was corrupted.
Timo Sirainen [Sun, 28 Feb 2016 19:03:47 +0000 (21:03 +0200)]
lib-mail: Minor code cleanup to message_parser_deinit() calls.
Timo Sirainen [Sun, 28 Feb 2016 18:46:57 +0000 (20:46 +0200)]
lib-mail: Added message_parser_deinit_from_parts()
The returned error strings could still be improved to give more details,
especially give an approximate offset of where the problem is.
Timo Sirainen [Sun, 28 Feb 2016 18:19:45 +0000 (20:19 +0200)]
lib-storage: Added mail_set_cache_corrupted_reason()
Timo Sirainen [Sun, 28 Feb 2016 17:57:10 +0000 (19:57 +0200)]
*-login: If verbose_ssl=yes, make sure all SSL errors are logged.
They should already be logged in the client's disconnection line, but log
them also with debug level just to make sure no errors are lost or
overwritten.
Timo Sirainen [Sun, 28 Feb 2016 17:55:53 +0000 (19:55 +0200)]
lib-ssl-iostream: If verbose=TRUE, internally log all errors.
Timo Sirainen [Sun, 28 Feb 2016 17:51:54 +0000 (19:51 +0200)]
lib-ssl-iostream: Log all SSL info lines with debug-level.
They're not logged at all if verbose=FALSE, so they're really debug messages.
Aki Tuomi [Sat, 27 Feb 2016 09:36:29 +0000 (11:36 +0200)]
doveadm-fs: Use ver2 structures
Aki Tuomi [Sat, 27 Feb 2016 09:13:24 +0000 (11:13 +0200)]
doveadm-cmd: Support non-strings in compat wrapper
Aki Tuomi [Sun, 28 Feb 2016 16:33:01 +0000 (18:33 +0200)]
doveadm-mail: Rename ctx to mctx to separate from cctx
Aki Tuomi [Sun, 28 Feb 2016 16:27:35 +0000 (18:27 +0200)]
doveadm: Changed v2 command APIs to be easier to use.
Timo Sirainen [Sun, 28 Feb 2016 16:25:31 +0000 (18:25 +0200)]
doveadm: Minor code cleanup - use arg-> instead of argv[i].
Timo Sirainen [Fri, 26 Feb 2016 15:33:02 +0000 (17:33 +0200)]
doveadm: Code cleanup - Removed unnecessary pointer checks.
Originally for some reason added by
e16cdc182 .
Timo Sirainen [Fri, 26 Feb 2016 14:21:38 +0000 (16:21 +0200)]
doveadm: Fixed command parameter handling for doveadm-server.
Timo Sirainen [Fri, 26 Feb 2016 14:05:01 +0000 (16:05 +0200)]
doveadm: Add more consts to avoid a cast breaking strict-aliasing rules.
Aki Tuomi [Fri, 26 Feb 2016 13:33:23 +0000 (15:33 +0200)]
doveadm: Fixed parsing field/flag/file parameters.
Timo Sirainen [Fri, 26 Feb 2016 13:25:27 +0000 (15:25 +0200)]
doveadm-log: Fixed trimming empty prefixes.
Too eager (long) cast removal from the original code broke it. Changed to
a slightly simplified version now.
Timo Sirainen [Fri, 26 Feb 2016 12:58:33 +0000 (14:58 +0200)]
doveadm: Pass through mail_storage_service_input fields in doveadm_cmd_attributes
Timo Sirainen [Fri, 26 Feb 2016 12:55:02 +0000 (14:55 +0200)]
doveadm: Added struct doveadm_cmd_attributes, which is passed around instead of argc/argv
Aki Tuomi [Wed, 24 Feb 2016 11:59:28 +0000 (13:59 +0200)]
doveadm-penalty: Convert to ver2 infra
Aki Tuomi [Fri, 26 Feb 2016 12:38:46 +0000 (14:38 +0200)]
doveadm-flags: Support giving flags as an array.
Aki Tuomi [Thu, 25 Feb 2016 07:26:39 +0000 (09:26 +0200)]
doveadm-copymove: Use ver2 structures
Aki Tuomi [Fri, 26 Feb 2016 07:37:06 +0000 (09:37 +0200)]
doveadm: Code cleanup - coding style fixes for doveadm_cmd_param*() accessors
Aki Tuomi [Fri, 26 Feb 2016 07:33:25 +0000 (09:33 +0200)]
doveadm-cmd: Add CMD_PARAM_IP
Aki Tuomi [Thu, 25 Feb 2016 10:30:45 +0000 (12:30 +0200)]
doveadm-mailbox-status: Fixed declaring and processing args
Aki Tuomi [Thu, 25 Feb 2016 10:30:33 +0000 (12:30 +0200)]
doveadm: Fully populate mail_cmd in ver2 wrapper
Aki Tuomi [Thu, 25 Feb 2016 08:34:34 +0000 (10:34 +0200)]
doveadm-fts: Use ver2 structures
Aki Tuomi [Thu, 25 Feb 2016 08:17:16 +0000 (10:17 +0200)]
doveadm-acl: Use ver2 structures
Aki Tuomi [Thu, 25 Feb 2016 07:58:55 +0000 (09:58 +0200)]
doveadm-search: Use ver2 structures
Aki Tuomi [Thu, 25 Feb 2016 07:54:01 +0000 (09:54 +0200)]
doveadm-purge: Use ver2 structures
Aki Tuomi [Thu, 25 Feb 2016 07:53:37 +0000 (09:53 +0200)]
doveadm-force-resync: Use ver2 structures
Aki Tuomi [Thu, 25 Feb 2016 07:46:40 +0000 (09:46 +0200)]
doveadm-import: Use ver2 structures
Aki Tuomi [Thu, 25 Feb 2016 07:44:04 +0000 (09:44 +0200)]
doveadm-flags: Use ver2 structures
Aki Tuomi [Thu, 25 Feb 2016 07:39:55 +0000 (09:39 +0200)]
doveadm-expunge: Use ver2 structures
Aki Tuomi [Thu, 25 Feb 2016 07:30:41 +0000 (09:30 +0200)]
doveadm-deduplicate: Use ver2 structures
Aki Tuomi [Thu, 25 Feb 2016 07:20:06 +0000 (09:20 +0200)]
doveadm-batch: Fixed it to work with ver2 commands.
Aki Tuomi [Thu, 25 Feb 2016 07:08:38 +0000 (09:08 +0200)]
doveadm-altmove: Use ver2 structures
Aki Tuomi [Wed, 24 Feb 2016 09:19:11 +0000 (11:19 +0200)]
doveadm: Remove return value from ver2 cmd() - doveadm_exit_code is enough
Aki Tuomi [Wed, 24 Feb 2016 09:14:14 +0000 (11:14 +0200)]
doveadm-cmd: Constify doveadm_cmd_param_*() usage
Aki Tuomi [Tue, 23 Feb 2016 12:36:22 +0000 (14:36 +0200)]
doveadm-log: Use ver2 structure
Aki Tuomi [Tue, 23 Feb 2016 12:14:16 +0000 (14:14 +0200)]
doveadm-log: Use doveadm_print() for output
Aki Tuomi [Tue, 23 Feb 2016 12:13:37 +0000 (14:13 +0200)]
doveadm-print: Add "formatted" print formatter
This allows using the header names as %{variables} in the format string.
Timo Sirainen [Wed, 24 Feb 2016 17:13:28 +0000 (19:13 +0200)]
*-login: Call client.auth_result() also when proxying
Stephan Bosch [Thu, 25 Feb 2016 22:15:45 +0000 (00:15 +0200)]
lib-http: client: Decreased request/connect timeout for test-http-client to 10s.
Stephan Bosch [Thu, 25 Feb 2016 22:15:17 +0000 (00:15 +0200)]
lib-http: client: Gave request, connect and dns timeouts defaults that make more sense.
Stephan Bosch [Thu, 25 Feb 2016 21:46:11 +0000 (22:46 +0100)]
lib-http: client: Fixed crash happening when connection hits an error while handling a new request.
At this point the connection dies within the peer request handler loop.
Before, the dying connection could free the peer when it ended up being
obsolete. But because it was still in the loop, a segfault occurred as the
loop continued. Fixed by deferring the the deallocation of the peer from
the connection_lost() function to the request handler loop itself if it is
active.
Timo Sirainen [Wed, 24 Feb 2016 23:18:06 +0000 (01:18 +0200)]
stats: Minor code cleaup - remove unnecessary includes and fix copyright year
Timo Sirainen [Wed, 24 Feb 2016 14:39:59 +0000 (16:39 +0200)]
lib: Added unit test to iostream-temp.
Timo Sirainen [Wed, 24 Feb 2016 14:39:25 +0000 (16:39 +0200)]
lib: iostream-temp makes the internal fd visible now to o_stream_get_fd()
Mainly for the following unit test.
Timo Sirainen [Wed, 24 Feb 2016 13:00:31 +0000 (15:00 +0200)]
lib-storage: Verify settings only after applying settings from userdb
This is especially important to verify() functions that parse the settings
and store data permanently based on them, e.g. pop3_delete_flag or
imap_client_workarounds, which effectively couldn't be overwritten by userdb.
Timo Sirainen [Tue, 23 Feb 2016 21:41:28 +0000 (23:41 +0200)]
lib: Added iostream_temp_create_sized() to specify the max in-memory size
Timo Sirainen [Tue, 23 Feb 2016 16:41:35 +0000 (18:41 +0200)]
login-proxy: Use io_add_istream() for adding client_input io.
This is required for non-fd istreams to work, e.g. ssl-iostream.
Timo Sirainen [Mon, 22 Feb 2016 23:48:47 +0000 (01:48 +0200)]
lib-http: Fix to earlier http_client_connection_unref() change 1dead6
Patch by Stephan Bosch
Timo Sirainen [Mon, 22 Feb 2016 20:23:08 +0000 (22:23 +0200)]
doveadm: Code cleanup - remove duplicate code
Timo Sirainen [Mon, 22 Feb 2016 20:10:42 +0000 (22:10 +0200)]
doveadm: Fixed usage printing for ver2 commands
Timo Sirainen [Mon, 22 Feb 2016 20:02:03 +0000 (22:02 +0200)]
doveadm: Define DOVEADM_CMD_MAIL_USAGE_PREFIX, which v2 commands use as their usage prefix.
This allows implementing the next changeset without kludging.
Aki Tuomi [Mon, 22 Feb 2016 19:44:40 +0000 (21:44 +0200)]
doveadm: Added doveadm_cmd_get_ver2() helper
Aki Tuomi [Mon, 22 Feb 2016 12:18:04 +0000 (14:18 +0200)]
doveadm-index: Use ver2 structures
Aki Tuomi [Mon, 22 Feb 2016 11:30:12 +0000 (13:30 +0200)]
doveadm-cmd: Add command flags
Timo Sirainen [Mon, 22 Feb 2016 19:39:06 +0000 (21:39 +0200)]
doveadm: Free istream parameters everywhere
Based on patch by Aki Tuomi
Aki Tuomi [Mon, 22 Feb 2016 12:03:41 +0000 (14:03 +0200)]
quota: Use doveadm ver2 structures
Timo Sirainen [Mon, 22 Feb 2016 19:28:24 +0000 (21:28 +0200)]
doveadm: Minor code cleanup - rename doveadm_cmd_find*() to doveadm_cmd_find_with_args*()
Timo Sirainen [Mon, 22 Feb 2016 19:24:06 +0000 (21:24 +0200)]
doveadm: Code cleanup - remove unnecessary NULL sets and checks
Timo Sirainen [Mon, 22 Feb 2016 19:17:26 +0000 (21:17 +0200)]
lib-http: Always set *_obj=NULL first in deinit functions (mainly for consistency)
This doesn't usually matter, but in case deinit calls some callback they may
be trying to access the partially destroyed object.
Timo Sirainen [Mon, 22 Feb 2016 19:15:37 +0000 (21:15 +0200)]
lib-http: http_server_connection_unref() now always sets *conn=NULL
This makes its behavior consistent with other APIs in Dovecot.
Timo Sirainen [Mon, 22 Feb 2016 19:00:41 +0000 (21:00 +0200)]
lib-http: Clarify http_server_response_*_payload() API and minor change to it
Similar to the change in
c3a4c93 . Nothing used this API yet.
Timo Sirainen [Mon, 22 Feb 2016 18:58:03 +0000 (20:58 +0200)]
lib-http: http_server_request_unref() now always sets *req=NULL
This makes its behavior consistent with other APIs in Dovecot.
Timo Sirainen [Mon, 22 Feb 2016 18:47:37 +0000 (20:47 +0200)]
lib-http: Clarify http_client_request_*_payload() API and minor change to it
The earlier behavior was pretty confusing, and potentially could have caused
double-freeing memory in some situations. Now it's clear that req is set to NULL
always when the request is finished, regardless of whether it has any references left.
Changed http_client_request_finish_payload() to return 0 on success instead of 1.
This could have been left alone, but it's unlikely that there is any code outside
Dovecot core that calls it and this way is cleaner.
Timo Sirainen [Mon, 22 Feb 2016 18:34:46 +0000 (20:34 +0200)]
lib-http: http_client_request_unref() now always sets *req=NULL
This makes its behavior consistent with other APIs in Dovecot.
Also http_client_request_finish() no longer sets req=NULL, because all of
its callers already keep a reference. Instead added an assert to make sure
the reference is there.
Timo Sirainen [Mon, 22 Feb 2016 18:14:57 +0000 (20:14 +0200)]
lib-http: http_client_connection_unref() now always sets *conn=NULL
This makes its behavior consistent with other APIs in Dovecot.
Aki Tuomi [Mon, 22 Feb 2016 18:03:44 +0000 (20:03 +0200)]
doveadm-http: Close client input correctly
Timo Sirainen [Mon, 22 Feb 2016 18:00:13 +0000 (20:00 +0200)]
doveadm-http: Return HTTP failure on unexpected JSON input
Timo Sirainen [Mon, 22 Feb 2016 17:56:35 +0000 (19:56 +0200)]
doveadm-http: Handle invalid input better for arrays.
Timo Sirainen [Sat, 20 Feb 2016 21:16:52 +0000 (23:16 +0200)]
doveadm-http: Handle istreams correctly
Based on patch by Aki Tuomi
Aki Tuomi [Wed, 17 Feb 2016 08:24:24 +0000 (10:24 +0200)]
doveadm-save: Use ver2 command structure
Timo Sirainen [Mon, 22 Feb 2016 16:55:03 +0000 (18:55 +0200)]
doveadm: Added support for "file" parameters
Timo Sirainen [Mon, 22 Feb 2016 16:46:29 +0000 (18:46 +0200)]
doveadm: Fixed memory leak at deinit
Timo Sirainen [Mon, 22 Feb 2016 16:42:42 +0000 (18:42 +0200)]
doveadm: Fixed double-free when using -F parameter
Timo Sirainen [Mon, 22 Feb 2016 16:42:10 +0000 (18:42 +0200)]
doveadm: Fixed memory leaks when ver2 command parsing fails with invalid parameter.
Aki Tuomi [Mon, 22 Feb 2016 11:59:14 +0000 (13:59 +0200)]
doveadm-mail: Fixed common parameters to use correct names as in DOVEADM_CMD_MAIL_COMMON
Aki Tuomi [Wed, 17 Feb 2016 07:19:01 +0000 (09:19 +0200)]
doveadm-fetch: Use ver2 structures
Aki Tuomi [Mon, 22 Feb 2016 16:20:59 +0000 (18:20 +0200)]
doveadm: Add kludge to support field array to fieldstr conversion
Aki Tuomi [Mon, 15 Feb 2016 13:14:25 +0000 (15:14 +0200)]
doveadm-stats: Use ver2 structures
Timo Sirainen [Mon, 22 Feb 2016 14:12:16 +0000 (16:12 +0200)]
lib-index: If mail_transaction_log_lock_head() locking took long, include reason string in warning
Timo Sirainen [Mon, 22 Feb 2016 09:47:16 +0000 (11:47 +0200)]
mdbox: Use mail_index_sync_set_reason() to give better reason messages for lock wait warnings.
Timo Sirainen [Mon, 22 Feb 2016 09:46:13 +0000 (11:46 +0200)]
lib-index: Added mail_index_sync_set_reason() to improve lock wait log warnings
Timo Sirainen [Mon, 22 Feb 2016 09:15:52 +0000 (11:15 +0200)]
lib-index: Small improvements to logging the reason for long transaction log lock waits
Timo Sirainen [Mon, 22 Feb 2016 08:25:56 +0000 (10:25 +0200)]
dovecot.service: Fixed PIDFile path - removed extra /dovecot/ directory from the middle.
Timo Sirainen [Sun, 21 Feb 2016 17:01:31 +0000 (19:01 +0200)]
lib: mempool-alloconly unit test improvement: verify that data stack isn't used by p_malloc()
Timo Sirainen [Sun, 21 Feb 2016 16:58:50 +0000 (18:58 +0200)]
lib: Minor code cleanup to mempool-alloconly unit test - use test_begin/assert/end()
Aki Tuomi [Sun, 21 Feb 2016 16:38:24 +0000 (18:38 +0200)]
doveadm-http: Correctly initialize parameters
Aki Tuomi [Sun, 21 Feb 2016 16:37:24 +0000 (18:37 +0200)]
doveadm: Fixed using array type parameters.
Aki Tuomi [Sun, 21 Feb 2016 16:36:19 +0000 (18:36 +0200)]
doveadm: Fixed assert-crash when command with CMD_PARAM_FLAG_DO_NOT_EXPOSE was used.
Aki Tuomi [Sun, 21 Feb 2016 16:35:03 +0000 (18:35 +0200)]
doveadm: Fixed support for --long-option arguments
Timo Sirainen [Sun, 21 Feb 2016 16:32:50 +0000 (18:32 +0200)]
lib: Added [pt]_array_const_string_join()
Based on patch by Aki Tuomi