]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Fri, 10 Mar 2023 23:12:33 +0000 (01:12 +0200)]
lib-storage: mail_storage_service_lookup*() - Stop reading settings
The caller is now expected to have read them already.
Timo Sirainen [Fri, 10 Mar 2023 23:11:28 +0000 (01:11 +0200)]
global: Stop assuming mail_storage_service_lookup*() is going to read settings
Timo Sirainen [Fri, 10 Mar 2023 22:59:19 +0000 (00:59 +0200)]
lib-storage: mail_storage_service_init_settings() - Stop reading settings
The settings should already have been read. Just access them.
Timo Sirainen [Fri, 10 Mar 2023 22:55:44 +0000 (00:55 +0200)]
lmtp: Replace mail_storage_service_read_settings() with master_service_settings_instance_new()
There's no need to actually read the settings, since they're already read.
LMTP client just needs a settings instance.
Timo Sirainen [Fri, 10 Mar 2023 22:55:13 +0000 (00:55 +0200)]
quota-status: Replace mail_storage_service_read_settings() with master_service_settings_read_simple()
Timo Sirainen [Thu, 9 Mar 2023 22:08:21 +0000 (00:08 +0200)]
lib-master: Use settings_parse_keyvalue_nodup()
Timo Sirainen [Thu, 9 Mar 2023 22:07:38 +0000 (00:07 +0200)]
lib-settings: Add settings_parse_keyvalue_nodup()
Timo Sirainen [Thu, 9 Mar 2023 13:00:59 +0000 (15:00 +0200)]
lib-settings: Remove internal code for multiple settings roots
Timo Sirainen [Wed, 8 Mar 2023 15:12:04 +0000 (17:12 +0200)]
lib-settings, global: Replace settings_parser_get_root_set() with settings_parser_get_set()
There is only one root now, so the root parameter isn't necessary.
Timo Sirainen [Wed, 8 Mar 2023 15:06:52 +0000 (17:06 +0200)]
lib-settings: Remove ability to use multiple roots in setting_parser_context
Timo Sirainen [Wed, 8 Mar 2023 14:59:02 +0000 (16:59 +0200)]
lib-storage: Unwrap set_keyval() wrapper function
It had become a very small wrapper, and the code is clearer without it.
Timo Sirainen [Wed, 8 Mar 2023 14:56:20 +0000 (16:56 +0200)]
lib-master, global: master_service_set() - Remove error handling
This function can no longer fail.
Timo Sirainen [Wed, 8 Mar 2023 14:50:29 +0000 (16:50 +0200)]
lib-master, lib-storage: Remove unused fields from master_service_settings_input
The username, local_ip and remote_ip are now looked up with the
master_service_settings_get() calls rather than at this early stage.
Timo Sirainen [Wed, 8 Mar 2023 15:01:38 +0000 (17:01 +0200)]
mail-crypt: Stop reading settings
The settings can now be accessed without reading them again.
Timo Sirainen [Wed, 8 Mar 2023 14:49:35 +0000 (16:49 +0200)]
doveadm: Stop reading per-connection settings
This is no longer necessary. The filtering is done by
master_service_settings_get()
Timo Sirainen [Wed, 8 Mar 2023 14:48:30 +0000 (16:48 +0200)]
doveadm: Add local_ip and remote_ip fields to connection event
These will be required to preserve support for local {) and remote {}
config filters after the following change.
Timo Sirainen [Wed, 8 Mar 2023 14:44:49 +0000 (16:44 +0200)]
login-common: Stop reading per-connection settings
This is no longer necessary. The filtering is done by
master_service_settings_get().
This commit also adds "local_name" field to client's event when TLS SNI is
used.
Timo Sirainen [Wed, 8 Mar 2023 14:39:02 +0000 (16:39 +0200)]
lib-storage: Remove mail_storage_vfuncs.get_setting_parser_info()
This is no longer necessary.
Timo Sirainen [Wed, 8 Mar 2023 14:33:03 +0000 (16:33 +0200)]
lib-storage, global: Remove "settings roots"
These were no longer used for anything.
Timo Sirainen [Wed, 8 Mar 2023 14:27:03 +0000 (16:27 +0200)]
lib-master, global: Remove "settings roots"
It's no longer necessary to know what settings the process will use.
Timo Sirainen [Tue, 7 Mar 2023 12:39:09 +0000 (14:39 +0200)]
lib-master: Delay settings parsing until master_service_settings_*get()
Timo Sirainen [Tue, 7 Mar 2023 12:21:30 +0000 (14:21 +0200)]
lib-master: Change master_service_settings_find() to be static
Timo Sirainen [Tue, 7 Mar 2023 12:19:20 +0000 (14:19 +0200)]
lib-master, lib-storage: Move key+=append and plugin/ handling to lib-master
This is necessary because all settings roots won't be known after following
changes. The plugin/ handling should eventually go away once all plugin
settings have been converted.
Timo Sirainen [Tue, 7 Mar 2023 11:53:43 +0000 (13:53 +0200)]
lib-master, lib-storage: Move -o parameter checks inside master_service_set()
Timo Sirainen [Mon, 6 Mar 2023 15:36:57 +0000 (17:36 +0200)]
lib-master: Split master_settings_mmap parsing from applying the settings
Timo Sirainen [Mon, 6 Mar 2023 15:21:50 +0000 (17:21 +0200)]
lib-master: Store filters in struct master_settings_mmap
Timo Sirainen [Mon, 6 Mar 2023 14:52:11 +0000 (16:52 +0200)]
lib-master: Remove unused config_cache_size setting
Timo Sirainen [Mon, 3 Apr 2023 11:28:28 +0000 (14:28 +0300)]
config: old-set-parser - Move imap_id_log handling to removed_settings[]
Timo Sirainen [Mon, 3 Apr 2023 11:26:21 +0000 (14:26 +0300)]
config: old-set-parser - Move login_access_sockets handling to removed_settings[]
Timo Sirainen [Mon, 3 Apr 2023 11:22:44 +0000 (14:22 +0300)]
config: old-set-parser - Merge "key is no longer needed" settings into "key has been removed" settings
There's not much of a difference between these.
Timo Sirainen [Mon, 3 Apr 2023 11:21:22 +0000 (14:21 +0300)]
config: old-set-parser - Move removed settings into an removed_settings[] array
Timo Sirainen [Mon, 6 Mar 2023 14:37:27 +0000 (16:37 +0200)]
lib-master, global: Prepare master_service_set() for type parameter
Timo Sirainen [Tue, 7 Feb 2023 23:27:54 +0000 (01:27 +0200)]
lib-master, global: Introduce master_service_settings_instance
This commit mainly consists of renaming "settings parser" to "settings
instance" in various variables and function names. The following commits
make it more useful.
Timo Sirainen [Wed, 8 Mar 2023 13:27:23 +0000 (15:27 +0200)]
lib-storage: Remove unused mail_storage_service_user_set_setting()
Timo Sirainen [Wed, 8 Mar 2023 13:26:55 +0000 (15:26 +0200)]
global: Replace mail_storage_service_user_set_setting() calls with master_service_set()
Timo Sirainen [Tue, 7 Feb 2023 23:25:47 +0000 (01:25 +0200)]
lib-storage: Don't keep mail_user.set_parser referenced
It's always just a direct pointer to service_userr->set_parser, so the
reference isn't needed. Also the following changes will change this to
a non-reference counted "settings instance", which makes this change
necessary.
Timo Sirainen [Tue, 7 Feb 2023 23:11:53 +0000 (01:11 +0200)]
lib-storage, global: mail_storage_service_read_settings() - Return duplicated parser
This will simplify following changes.
Timo Sirainen [Tue, 7 Feb 2023 22:46:18 +0000 (00:46 +0200)]
doveadm, lmtp: Use mail_storage_service_user_set_setting()
Timo Sirainen [Tue, 7 Feb 2023 22:27:50 +0000 (00:27 +0200)]
lib-storage: Replace direct settings-parser API calls with lib-master API
Timo Sirainen [Tue, 7 Feb 2023 22:25:37 +0000 (00:25 +0200)]
lib-master: Add master_service_settings_find()
Timo Sirainen [Tue, 7 Feb 2023 21:55:26 +0000 (23:55 +0200)]
lib-master: Change master_service_set() API
It wasn't currently used by core, and this API makes it close to what we
want it to be eventually.
Timo Sirainen [Tue, 7 Feb 2023 21:46:21 +0000 (23:46 +0200)]
lib-master: Remove unused master_service_get_settings_parser()
Timo Sirainen [Tue, 7 Feb 2023 22:23:21 +0000 (00:23 +0200)]
lib-settings: Remove unused settings_parse_is_valid_key()
Timo Sirainen [Tue, 7 Feb 2023 22:22:44 +0000 (00:22 +0200)]
lib-storage: Avoid separate settings_parse_is_valid_key() call
The same information can be found with settings_parse_get_value().
This will simplify the following changes.
Timo Sirainen [Tue, 7 Feb 2023 22:11:01 +0000 (00:11 +0200)]
lib-storage: Use mail_storage_service_user_set_setting() where possible
Timo Sirainen [Tue, 7 Feb 2023 22:19:30 +0000 (00:19 +0200)]
lib-storage: Fail if userdb returns key+=value for non-string
Previously an error was logged, but the user initialization didn't fail.
However, it's safer to fail since it's a bad configuration.
Timo Sirainen [Tue, 4 Apr 2023 10:09:41 +0000 (13:09 +0300)]
lib-storage: Cleanup - Change set_keyvalue() to return error_r
Timo Sirainen [Tue, 7 Feb 2023 22:06:04 +0000 (00:06 +0200)]
lib-storage: Cleanup - parse userdb settings with settings_parse_keyvalue()
Timo Sirainen [Mon, 23 Jan 2023 23:36:56 +0000 (01:36 +0200)]
lib-settings: Don't allocate settings error from parser pool
This avoids wasting memory if caller wants to ignore errors and continue
parsing.
Timo Sirainen [Sun, 22 Jan 2023 16:29:38 +0000 (18:29 +0200)]
lib-storage: Rename unexpanded_set_parsers to set_parsers
The settings are no longer expanded inside set_parsers, so they're always
unexpanded.
Timo Sirainen [Sun, 22 Jan 2023 16:27:39 +0000 (18:27 +0200)]
lib-storage: Don't duplicate mail_user.set_parser
It's always a pointer to mail_storage_service_user.set_parser, which is
already user-specific.
Timo Sirainen [Sun, 22 Jan 2023 16:18:17 +0000 (18:18 +0200)]
lmtp: Rename unexpanded_lda_set to lda_set
Also expand them, although there are currently no STR_VARS settings to be
expanded.
Timo Sirainen [Fri, 20 Jan 2023 20:25:27 +0000 (22:25 +0200)]
lib-storage: Remove unused mail_user_var_expand()
Timo Sirainen [Fri, 20 Jan 2023 20:15:22 +0000 (22:15 +0200)]
lib-storage, global: Move settings expansion out of mail_user_init()
master_service_settings_parser_get() calls can now decide whether to expand
settings or not.
Timo Sirainen [Fri, 20 Jan 2023 20:01:13 +0000 (22:01 +0200)]
lib-storage: Get mail_storage_settings with master_service_settings_parser_get()
This also changes the %variable expansion to happen via the mail_user event.
Timo Sirainen [Fri, 20 Jan 2023 03:15:19 +0000 (05:15 +0200)]
lib-storage: Remove explicit check for missing mail_home in plugin setting expansion
The %{home} expansion will now fail clearly even without this check.
Timo Sirainen [Fri, 20 Jan 2023 01:13:13 +0000 (03:13 +0200)]
lib-storage: Remove unused mail_user.unexpanded_set
Timo Sirainen [Fri, 20 Jan 2023 01:17:17 +0000 (03:17 +0200)]
lib-storage: Initialize mail_user.set immediately from service_user.set
This also simplifies accessing mail_home setting during mail_user
initialization, since the mail_home setting is already expanded.
Timo Sirainen [Fri, 20 Jan 2023 01:26:34 +0000 (03:26 +0200)]
lib-storage: Change mail_user.set to be const
Timo Sirainen [Fri, 20 Jan 2023 01:39:12 +0000 (03:39 +0200)]
imap: test-imap-client-hibernate - Avoid changing mail_user.set
The following commit prevents this by changing settings to be const.
Timo Sirainen [Fri, 20 Jan 2023 03:11:06 +0000 (05:11 +0200)]
lib-storage, global: Move mail_user_settings.{plugin_envs|namespaces} to mail_storage_settings
The following commits change %{home} to stop working in mail_user_settings.
Also, it makes more sense that namespaces are storage-related settings.
Timo Sirainen [Fri, 20 Jan 2023 01:23:50 +0000 (03:23 +0200)]
lib-storage: Remove mail_namespace.user_set
The idea was at some point to allow namespaces to override some settings.
This wasn't actually used currently, and following changes will make this
method obsolete.
Timo Sirainen [Fri, 20 Jan 2023 02:38:35 +0000 (04:38 +0200)]
lib-storage: Remove mail_storage_service_privileges.{home|chroot}
Timo Sirainen [Fri, 20 Jan 2023 02:35:27 +0000 (04:35 +0200)]
lib-storage: Handle home & chroot updating already when looking up service_user
Timo Sirainen [Fri, 20 Jan 2023 02:32:04 +0000 (04:32 +0200)]
lib-storage: Split off mail_storage_service_update_chroot()
Timo Sirainen [Fri, 20 Jan 2023 02:31:02 +0000 (04:31 +0200)]
lib-storage: set_keyval() - Remove ctx parameter
It's accessible via the user parameter.
Timo Sirainen [Mon, 27 Mar 2023 22:19:44 +0000 (01:19 +0300)]
lib-storage: Expand mail_log_prefix %variables only once
Timo Sirainen [Thu, 19 Jan 2023 21:39:03 +0000 (23:39 +0200)]
lib-storage: Expand mail_storage_service_user.user_set using master_service_settings_parser_get()
Since the settings are now expanded early, the initialization code becomes
simplified since we no longer need to expand specific settings explicitly.
Timo Sirainen [Thu, 19 Jan 2023 21:38:00 +0000 (23:38 +0200)]
lib-storage: unit tests - Fix home directory setting
The directory ended with /username/username twice. This didn't seem to
matter though.
Timo Sirainen [Thu, 19 Jan 2023 21:25:17 +0000 (23:25 +0200)]
lib-storage, util: mail_storage_service_restrict_setenv() - Remove ctx parameter
It can be accessed via the user parameter.
Timo Sirainen [Fri, 13 Jan 2023 00:13:05 +0000 (02:13 +0200)]
lib-storage: Replace settings_parser_get_root_set() with master_service_settings_parser_get()
Timo Sirainen [Fri, 13 Jan 2023 00:10:09 +0000 (02:10 +0200)]
mbox: Remove unused mbox_mailbox_list.set
Timo Sirainen [Fri, 13 Jan 2023 00:09:56 +0000 (02:09 +0200)]
maildir: Remove unused maildir_mailbox_list_context.set
Timo Sirainen [Thu, 12 Jan 2023 23:10:10 +0000 (01:10 +0200)]
imapc: Move settings initialization to imapc_storage_client_create()
Timo Sirainen [Thu, 12 Jan 2023 22:13:51 +0000 (00:13 +0200)]
lib-storage: Remove mail_storage_settings.hostname
It exists also in mail_user_settings, which is a better place for it.
Timo Sirainen [Thu, 12 Jan 2023 22:13:29 +0000 (00:13 +0200)]
lib-lda: Get hostname via mail_user_settings
It's the same value as via mail_storage_settings, but easier to get.
Timo Sirainen [Thu, 12 Jan 2023 22:05:30 +0000 (00:05 +0200)]
lib-storage: Remove mail_user.unexpanded_set_parser and related code
Use mail_storage_service_user.set_parser instead.
Timo Sirainen [Sat, 7 Jan 2023 22:36:57 +0000 (00:36 +0200)]
lib-storage: mail-storage-service - Use master_service_settings_parser_get()
Timo Sirainen [Thu, 19 Jan 2023 21:13:15 +0000 (23:13 +0200)]
lib-storage: mail_storage_service_lookup_real() - Move event creation earlier
Timo Sirainen [Thu, 12 Jan 2023 14:59:55 +0000 (16:59 +0200)]
lib-storage, doveadm: mail_storage_service_user_get_set() - Return mail_user_settings always
Timo Sirainen [Thu, 12 Jan 2023 14:52:43 +0000 (16:52 +0200)]
lmtp: Move lmtp_local_deliver_context.lda_set to lmtp_local_recipient
This simplifies the settings lookup when checking if user is over quota.
Timo Sirainen [Thu, 12 Jan 2023 14:44:28 +0000 (16:44 +0200)]
lib-storage: Remove unused mail_storage_service_user_get_ssl_settings()
Timo Sirainen [Thu, 12 Jan 2023 14:42:56 +0000 (16:42 +0200)]
lib-storage, global: Replace mail_user_init_ssl_client_settings() with mail_user.ssl_set
The ssl settings are used all over the place, so it's easier to just add
them to mail_user directly.
Timo Sirainen [Thu, 12 Jan 2023 14:12:03 +0000 (16:12 +0200)]
doveadm: Replace mail_storage_service_user_get_ssl_settings() with mail_storage_service_user_init_ssl_client_settings()
Timo Sirainen [Thu, 12 Jan 2023 14:17:41 +0000 (16:17 +0200)]
lib-storage: Add mail_storage_service_user_init_ssl_client_settings()
Timo Sirainen [Thu, 12 Jan 2023 14:04:00 +0000 (16:04 +0200)]
lib-storage: Remove unused mail_storage_service_user_get_mail_set()
Timo Sirainen [Thu, 12 Jan 2023 14:03:28 +0000 (16:03 +0200)]
lmtp: Replace mail_storage_service_user_get_mail_set() with master_service_settings_parser_get()
Timo Sirainen [Thu, 12 Jan 2023 13:59:22 +0000 (15:59 +0200)]
pop3: Use better ways of accessing mail_storage_settings
Timo Sirainen [Thu, 12 Jan 2023 13:44:39 +0000 (15:44 +0200)]
lib-storage: Remove mail_user.mail_debug
It's still available via mail_user.set.mail_debug, although shouldn't
normally be used anymore.
Timo Sirainen [Thu, 12 Jan 2023 13:36:37 +0000 (15:36 +0200)]
lib-storage: lua - Remove mail_user.mail_debug
Timo Sirainen [Thu, 12 Jan 2023 13:33:17 +0000 (15:33 +0200)]
lib-storage: Move mail_storage_settings.mail_debug to mail_user_settings
Timo Sirainen [Thu, 12 Jan 2023 13:44:20 +0000 (15:44 +0200)]
global: Replace mail_debug checks with event_want_debug()
Timo Sirainen [Thu, 12 Jan 2023 13:31:40 +0000 (15:31 +0200)]
imapc: Replace mail_debug usage with event_want_debug()
Timo Sirainen [Thu, 12 Jan 2023 13:38:41 +0000 (15:38 +0200)]
submission, mail-lua: Remove unnecessary mail_debug checks from debug logging
These aren't necessary, and they also prevent more specific debug filters
with log_debug.
Timo Sirainen [Sat, 7 Jan 2023 20:57:29 +0000 (22:57 +0200)]
lib-storage: mail_storage_service_user - Add missing %{hostname}
This existed for mail_user already.
Timo Sirainen [Sat, 7 Jan 2023 20:32:46 +0000 (22:32 +0200)]
lib-storage: Remove unused mail_storage_service_save_userdb_fields()
Timo Sirainen [Sat, 7 Jan 2023 20:31:50 +0000 (22:31 +0200)]
doveadm: Replace mail_storage_service_save_userdb_fields() with mail_storage_service_user_get_userdb_fields()
This is much less kludgy.
Timo Sirainen [Sat, 7 Jan 2023 20:31:41 +0000 (22:31 +0200)]
lib-storage: Add mail_storage_service_user_get_userdb_fields()
Timo Sirainen [Thu, 5 Jan 2023 14:13:22 +0000 (16:13 +0200)]
lda: Use master_service_settings_parser_get()
Timo Sirainen [Thu, 5 Jan 2023 14:08:26 +0000 (16:08 +0200)]
lib-master: Remove unused master_service_settings_get_root_set[_dup]()