]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Karl Fleischmann [Wed, 7 Dec 2022 11:15:25 +0000 (12:15 +0100)]
lib-storage: Rename imapc feature "rfc822.size" -> "fetch-size"
Marco Bettini [Tue, 6 Dec 2022 11:32:13 +0000 (11:32 +0000)]
global: Add mail_cache_max_header_name_length functionality
Marco Bettini [Tue, 6 Dec 2022 11:31:21 +0000 (11:31 +0000)]
lib-index: Shorten mail_cache_unaccessed_field_drop effective value to 1/4 while cache header count is saturated
This is done to help the cache to converge quicker to the intended state.
Marco Bettini [Tue, 6 Dec 2022 11:29:48 +0000 (11:29 +0000)]
global: Add mail_cache_max_headers_count functionality
Timo Sirainen [Fri, 16 Dec 2022 08:52:00 +0000 (10:52 +0200)]
auth: Fix crash when using empty auth listener type
Remove AUTH_SOCKET_UNKNOWN since there is no need for it. This removes its
"" name, which causes unknown socket types to default to AUTH_SOCKET_AUTH
and fix this issue.
Broken by
9f72a95148f1d998e33bfacaef7b43e57e463d25
Markus Valentin [Tue, 13 Dec 2022 08:12:21 +0000 (09:12 +0100)]
lib: connection - Use connection name for disconnect and input timeout reason
Markus Valentin [Thu, 8 Dec 2022 13:39:06 +0000 (14:39 +0100)]
lib-doveadm: Use dns_lookup() if dns_client_socket_path is set
Markus Valentin [Thu, 8 Dec 2022 13:29:31 +0000 (14:29 +0100)]
lib-doveadm: doveadm_client_create() - Extract connection_client_connect() to own function
Markus Valentin [Thu, 8 Dec 2022 13:07:47 +0000 (14:07 +0100)]
lib-doveadm: doveadm_client_create() - Extract connection_init_client_ip() to own function
Also move calling it inside doveadm_client_resolve_hostname()
Markus Valentin [Mon, 10 Oct 2022 11:31:52 +0000 (13:31 +0200)]
lib-doveadm: doveadm_client_create() - Extract doveadm_client_resolve_name()
The newly added function calls net_gethostbyname(), as preparation for
the following commit.
Markus Valentin [Mon, 10 Oct 2022 11:27:15 +0000 (13:27 +0200)]
lib-doveadm: doveadm_client_create() - Store ips and ips_count to doveadm_client
Karl Fleischmann [Thu, 15 Dec 2022 09:32:30 +0000 (10:32 +0100)]
lib: Warn about ambiguous event filter units
Karl Fleischmann [Thu, 15 Dec 2022 09:32:09 +0000 (10:32 +0100)]
lib: Specify test output for event filter units
Karl Fleischmann [Tue, 13 Dec 2022 16:37:38 +0000 (17:37 +0100)]
lib: Print source filename and linenum when warning about event field type mismatch
Karl Fleischmann [Tue, 13 Dec 2022 08:28:54 +0000 (09:28 +0100)]
lib: Validate field type when matching events
This additionally requires a unit test to expect a warning.
Karl Fleischmann [Tue, 13 Dec 2022 08:26:04 +0000 (09:26 +0100)]
lib: Use event_filter_node struct when matching event fields
Change the signature of the event_match_field() function without its
behavior. This prepares to inspect attributes of the node itself to
match field types in a later commit.
Aki Tuomi [Wed, 14 Dec 2022 13:07:38 +0000 (15:07 +0200)]
lib-lua: http - Use correct dns-client path
The current code tries to look it up from user homedir sometimes.
Broken in
5b56debd31800ec45fc0c6529b138d1ce943b0aa
Aki Tuomi [Wed, 14 Dec 2022 10:58:40 +0000 (12:58 +0200)]
global: Use wget -nv when downloading
wget -q hides errors too, so lets use -nv to emit short line instead.
Aki Tuomi [Fri, 2 Dec 2022 20:04:50 +0000 (22:04 +0200)]
auth: password-scheme-scram - Support rounds parameter
Timo Sirainen [Sun, 11 Dec 2022 21:15:09 +0000 (23:15 +0200)]
master: Don't wait only for log process at shutdown
There is 1 second wait at shutdown for processes that are still running.
During this 1 second they should process SIGQUIT and close socket listeners.
However, it's normal behavior for the log process to still exist at this
stage, and there is no need to wait for it.
Timo Sirainen [Sun, 11 Dec 2022 21:13:09 +0000 (23:13 +0200)]
master: Use shorter interval to check when processes have stopped
Instead of waiting 100ms between checks, wait only 10ms. This makes
shutdown slightly faster.
Timo Sirainen [Tue, 13 Dec 2022 08:48:12 +0000 (10:48 +0200)]
lib: Fix static_assert() to compile with C++
It exists in C++11, but it's not a macro.
Timo Sirainen [Mon, 12 Dec 2022 09:52:48 +0000 (11:52 +0200)]
auth: Add AUTH_SOCKET_TOKEN_COUNT and verify its name array size
Remove the [ENUM] indexes, because using them hides the size checking error
if new enums are inserted in the middle.
Timo Sirainen [Sat, 3 Dec 2022 12:10:20 +0000 (14:10 +0200)]
imap: Add IMAP_NOTIFY_EVENT_COUNT and verify its name array size
Timo Sirainen [Sat, 3 Dec 2022 12:08:11 +0000 (14:08 +0200)]
dsync: Add DSYNC_MAIL_CHANGE_TYPE_COUNT and verify its name array size
Timo Sirainen [Fri, 2 Dec 2022 13:54:07 +0000 (15:54 +0200)]
global: Check for enum/array size mismatches with static_assert_array_size()
Timo Sirainen [Sat, 3 Dec 2022 12:02:30 +0000 (14:02 +0200)]
doveadm: doveadm mailbox path -t types: Add missing index-cache and list-index
Timo Sirainen [Sat, 3 Dec 2022 12:02:00 +0000 (14:02 +0200)]
lib-storage: Add MAILBOX_LIST_PATH_TYPE_COUNT
Timo Sirainen [Fri, 2 Dec 2022 13:52:26 +0000 (15:52 +0200)]
lib-storage: Add index_mail_global_cache_fields_dup() to hide global_cache_fields
Timo Sirainen [Sat, 3 Dec 2022 11:46:02 +0000 (13:46 +0200)]
lib: Add static_assert_array_size()
This is a simple way to make sure array size matches the given count,
or give a compile time error if not.
Timo Sirainen [Fri, 2 Dec 2022 13:49:32 +0000 (15:49 +0200)]
lib: Add static_assert() macro to _Static_assert()
We require C11 nowadays, so _Static_assert() should be supported.
static_assert() is nicer though, and it seems to be planned for C23.
Stephan Bosch [Tue, 22 Nov 2022 20:50:52 +0000 (21:50 +0100)]
log: Use the new listener type field to distinguish the various listener types.
Stephan Bosch [Tue, 22 Nov 2022 20:44:30 +0000 (21:44 +0100)]
doveadm: Use the new listener type field to distinguish the various listener types.
Stephan Bosch [Wed, 23 Nov 2022 01:33:06 +0000 (02:33 +0100)]
stats: Use the new listener type field to distinguish the various listener types.
Stephan Bosch [Fri, 18 Nov 2022 21:32:00 +0000 (22:32 +0100)]
replication: Use the new listener type field to distinguish the various listener types.
Stephan Bosch [Fri, 18 Nov 2022 20:46:31 +0000 (21:46 +0100)]
imap: Use the new listener type field to distinguish the various listener types.
Stephan Bosch [Fri, 18 Nov 2022 20:09:33 +0000 (21:09 +0100)]
auth: Use the new listener type field to distinguish the various listener types.
Stephan Bosch [Mon, 21 Nov 2022 19:35:48 +0000 (20:35 +0100)]
global: Set type "admin" for all admin service listeners.
Stephan Bosch [Wed, 23 Nov 2022 01:05:02 +0000 (02:05 +0100)]
lib-master: master-service - Add master_service_connection_get_type().
Stephan Bosch [Tue, 29 Nov 2022 22:32:13 +0000 (23:32 +0100)]
master: Add support for service listener type field.
It is conveyed to the services along with the rest of the listener settings and
alows distinguising listeners more reliably than parsing the purpose of the
listener from the name, as it is now.
Stephan Bosch [Mon, 5 Aug 2019 21:46:12 +0000 (23:46 +0200)]
global: Reformat service listener setting defaults.
Use named initializers and list the items on a separate line each.
Timo Sirainen [Thu, 25 Aug 2022 14:53:24 +0000 (17:53 +0300)]
lib-auth: Fix response code for internal auth process communication errors
For example if auth process crashed, it resulted in [AUTHENTICATIONFAILED]
rather than [UNAVAILABLE].
This was forgotten to be changed in
36b072d84a9076c3c483bf710444a716e987ccc3
Markus Valentin [Thu, 1 Dec 2022 09:54:38 +0000 (10:54 +0100)]
lib-sql: Add sql_statement_set_no_log_expanded_values()
This allows to store no_log_expanded_values to sql_statement.
Markus Valentin [Thu, 1 Dec 2022 10:13:16 +0000 (11:13 +0100)]
dict: Implement DICT_PROTOCOL_CMD_HIDE_LOG_VALUES for dict and dict-proxy
Markus Valentin [Thu, 1 Dec 2022 10:03:26 +0000 (11:03 +0100)]
lib-dict: Add .set_hide_log_values() to dict vfuncs
This is used to set hide_log_values in dict op settings.
Markus Valentin [Mon, 5 Dec 2022 10:58:31 +0000 (11:58 +0100)]
cassandra: Rename query to log_query and initialize it with sql_statement_get_log_query()
Also add sql_statement_get_log_query() to sql-api.
Markus Valentin [Mon, 5 Dec 2022 10:50:30 +0000 (11:50 +0100)]
lib-event: Add event_unset_log_message_callback()
Markus Valentin [Mon, 28 Nov 2022 10:17:11 +0000 (11:17 +0100)]
fs-api: Add fs_get_event()
Timo Sirainen [Fri, 2 Dec 2022 12:53:59 +0000 (14:53 +0200)]
lmtp: Fix memory leak by unreferencing duplicated settings parser
Broken by
8807ff0df48c5a19fec2a1f01dc0dac6d864b7b2
Timo Sirainen [Fri, 2 Dec 2022 12:52:53 +0000 (14:52 +0200)]
lib-storage: Fix memory leak by unreferencing duplicated settings parsers
Broken by
e20c5c67fc01c80dd48bfc8efe15c212b725d46e
Timo Sirainen [Fri, 2 Dec 2022 12:51:23 +0000 (14:51 +0200)]
lib-storage: Remove "const" from settings parser contexts
Timo Sirainen [Fri, 2 Dec 2022 12:50:47 +0000 (14:50 +0200)]
lib-master, global: master_service_settings_cache_read() - Remove "const" from settings parser return value
Timo Sirainen [Fri, 2 Dec 2022 12:59:41 +0000 (14:59 +0200)]
lib-settings: Remove settings_parser_deinit()
Timo Sirainen [Fri, 2 Dec 2022 12:43:21 +0000 (14:43 +0200)]
global: Replace settings_parser_deinit() with settings_parser_unref()
Timo Sirainen [Fri, 2 Dec 2022 12:42:27 +0000 (14:42 +0200)]
lib-settings: Add refcounting with settings_parser_[un]ref()
Karl Fleischmann [Thu, 24 Nov 2022 15:33:27 +0000 (16:33 +0100)]
doveadm/client-connection-http: Validate request boolean values
Only accept "true" and "false" as boolean payload values.
Timo Sirainen [Thu, 1 Dec 2022 10:37:17 +0000 (12:37 +0200)]
pop3: Fix assert-crash when POP3 command name contained ':'
The cmd_<name> reason code now only uses valid command names.
Broken by
d2ab26be6038bd53b13a3ff18c403d6c192c1d91 with incomplete fix in
1309137812424c80e63d3c1052795b43d6e19803 .
Fixes:
Panic: event_reason_code_prefix(): name has ':'
Timo Sirainen [Thu, 1 Dec 2022 10:32:28 +0000 (12:32 +0200)]
pop3: Move pop3 commands to array and add pop3_command_find()
Timo Sirainen [Wed, 16 Nov 2022 23:17:38 +0000 (01:17 +0200)]
lib-storage: mail_storage_service_read_settings() - Remove user_info_r parameter
Timo Sirainen [Wed, 16 Nov 2022 23:15:05 +0000 (01:15 +0200)]
lib-storage: Remove mail_storage_service_user.user_info
Timo Sirainen [Wed, 16 Nov 2022 23:13:25 +0000 (01:13 +0200)]
lib-storage: Remove mail_user.set_info
Timo Sirainen [Sun, 27 Feb 2022 21:30:34 +0000 (22:30 +0100)]
lib-settings: Remove support for dynamic parsers
Timo Sirainen [Sun, 27 Feb 2022 21:29:57 +0000 (22:29 +0100)]
lib-master, global: master_service_settings_cache_read() - Remove dyn_parsers parameter
Timo Sirainen [Sun, 27 Feb 2022 21:26:57 +0000 (22:26 +0100)]
lib-storage: Remove unused mail_storage_get_dynamic_parsers()
Timo Sirainen [Sun, 27 Feb 2022 21:11:03 +0000 (22:11 +0100)]
lib-storage, global: mail_storage_service_read_settings() - Remove unused pool parameter
Timo Sirainen [Tue, 15 Nov 2022 21:26:02 +0000 (23:26 +0200)]
lib-storage: Replace mail_user_set_get_driver_settings() with settings_parser_get_root_set()
Timo Sirainen [Tue, 15 Nov 2022 22:51:11 +0000 (00:51 +0200)]
lib-storage: Replace mail_namespace_get_driver_settings() with settings_parser_get_root_set()
Timo Sirainen [Wed, 16 Nov 2022 23:23:57 +0000 (01:23 +0200)]
lib-storage: Call settings_check() for all settings roots (3/3)
This commit finishes the breaking changes.
Timo Sirainen [Sun, 13 Nov 2022 15:18:47 +0000 (17:18 +0200)]
lib-storage, global: Change mail_user_init() to expand all settings automatically (2/3)
The callers must no longer expand the settings again.
Timo Sirainen [Sun, 27 Feb 2022 21:08:31 +0000 (22:08 +0100)]
lib-storage: Change storage-specific settings to regular settings roots (1/3)
This removes the need to have support for "dynamic settings".
This unfortunately also breaks Dovecot for the next two commits. The commits
are large enough that it doesn't make sense to squash them, and trying to
get them to work in the intermediate commits seems to be too much effort.
Timo Sirainen [Wed, 16 Nov 2022 23:03:28 +0000 (01:03 +0200)]
lib-storage: Set mail_user.unexpanded_set via unexpanded_set_parser
There is no need for mail_user_alloc*() to have a settings parameter.
Timo Sirainen [Tue, 15 Nov 2022 23:31:05 +0000 (01:31 +0200)]
lib-storage: Remove unnecessary prefixless_ns_unexpanded_set
Timo Sirainen [Tue, 15 Nov 2022 23:30:14 +0000 (01:30 +0200)]
lib-storage: Remove mail_namespace.unexpanded_set
Timo Sirainen [Wed, 30 Nov 2022 12:48:13 +0000 (14:48 +0200)]
dsync: Sync also namespaces where empty location setting came from userdb or -o parameter
Timo Sirainen [Tue, 15 Nov 2022 23:20:38 +0000 (01:20 +0200)]
lib-storage, dsync: Use a copy of unexpanded location settings
The unexpanded settings structs are used in only a few places. Replace
this usage by explicitly copying the few variables that are actually
needed. This allows getting rid of the full unexpanded settings structs,
which simplifies the settings handling code.
Timo Sirainen [Sun, 13 Nov 2022 14:50:00 +0000 (16:50 +0200)]
lib-storage: Add mail_storage_service_get_set_roots()
Timo Sirainen [Sun, 27 Feb 2022 21:05:07 +0000 (22:05 +0100)]
lib-storage: mail_user_set_get_driver_settings() - Add set_parser parameter
This is in preperation for the next commit that uses it.
Timo Sirainen [Sun, 27 Feb 2022 20:46:26 +0000 (21:46 +0100)]
lib-storage: mail_user_set_get_driver_settings() - Lookup settings via info struct
Timo Sirainen [Sun, 27 Feb 2022 20:32:24 +0000 (21:32 +0100)]
lib-settings: Add settings_find_dynamic_by_info()
Timo Sirainen [Fri, 18 Nov 2022 11:15:37 +0000 (13:15 +0200)]
global: Get settings via settings parser where possible
This will be required in the later commits.
Timo Sirainen [Sun, 27 Feb 2022 20:15:44 +0000 (21:15 +0100)]
lda, lmtp: raw_storage_create_from_set() - Use the same source for user settings and settings parser
Timo Sirainen [Sun, 27 Feb 2022 14:51:58 +0000 (15:51 +0100)]
lib-storage: Add mail_user.[unexpanded_]set_parser
The original parser stays unexpanded, while a duplicate parser will be
used for expanding settings. Also, since the whole parser is duplicated,
there's no need to anymore duplicate the settings structs themselves.
Timo Sirainen [Sat, 26 Feb 2022 22:39:19 +0000 (23:39 +0100)]
lib-settings: Remove unused settings_parser_get_list()
Timo Sirainen [Sat, 26 Feb 2022 22:38:45 +0000 (23:38 +0100)]
lib-master: Replace settings_parser_get_list() with settings_parser_get_root_set()
Timo Sirainen [Sat, 26 Feb 2022 22:36:58 +0000 (23:36 +0100)]
lib-master: Remove unused master_service_settings_parser_get_others()
Timo Sirainen [Sat, 26 Feb 2022 22:36:11 +0000 (23:36 +0100)]
lib-storage, global: Add root parameter to mail_storage_service_user_get_set()
Timo Sirainen [Sat, 26 Feb 2022 22:30:25 +0000 (23:30 +0100)]
login-common: Use settings_parser_get_root_set()
Timo Sirainen [Sat, 26 Feb 2022 22:26:20 +0000 (23:26 +0100)]
lib-master: Remove unused master_service_settings_get_others()
Timo Sirainen [Sat, 26 Feb 2022 22:25:59 +0000 (23:25 +0100)]
doveadm: Use master_service_settings_get_root_set*()
Timo Sirainen [Sat, 26 Feb 2022 22:20:52 +0000 (23:20 +0100)]
lib-master: Replace master_service_ssl_server_settings_get() with master_service_settings_get_root_set()
Timo Sirainen [Sat, 26 Feb 2022 22:19:38 +0000 (23:19 +0100)]
lib-master, global: Replace master_service_ssl_settings_get() with master_service_settings_get_root_set()
Timo Sirainen [Sat, 26 Feb 2022 22:15:22 +0000 (23:15 +0100)]
lib-master, lib-storage: Replace master_service_ssl_settings_get_from_parser() with settings_parser_get_root_set()
Timo Sirainen [Sat, 26 Feb 2022 22:04:37 +0000 (23:04 +0100)]
global: Use master_service_settings_get_root_set_dup()
Timo Sirainen [Sat, 26 Feb 2022 22:00:49 +0000 (23:00 +0100)]
lib-master: Add master_service_settings_get_root_set_dup()
Timo Sirainen [Mon, 21 Nov 2022 18:45:21 +0000 (20:45 +0200)]
lmtp: Duplicate the whole settings parser rather than individual settings structs
This will be needed later on.
Timo Sirainen [Thu, 17 Nov 2022 14:16:02 +0000 (16:16 +0200)]
lmtp: Remove client.user_set
Timo Sirainen [Sat, 26 Feb 2022 21:58:26 +0000 (22:58 +0100)]
lib-settings: Add settings_parser_get_root_set_dup()
Timo Sirainen [Sat, 26 Feb 2022 21:44:37 +0000 (22:44 +0100)]
global: Replace most master_service_settings_get_others() calls with master_service_settings_get_root_set()
Timo Sirainen [Sat, 26 Feb 2022 21:37:17 +0000 (22:37 +0100)]
lib-master: Add master_service_settings_get_root_set()
Timo Sirainen [Sat, 26 Feb 2022 21:34:51 +0000 (22:34 +0100)]
global: Replace most master_service_settings_parser_get_others() calls with settings_parser_get_root_set()