]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-client: Add new imapc_parameters struct
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Wed, 28 Feb 2024 16:08:04 +0000 (17:08 +0100)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:13 +0000 (12:34 +0200)
This will be necessary to allow a caller of imapc_client_init() to
dynamically change attributes.

src/lib-imap-client/imapc-client.h

index 555c3abdb972041d731002801ba300a449ccdad6..c9d1e1c4628b5a916fdc09c3ef373bbc82e8669c 100644 (file)
@@ -165,6 +165,22 @@ struct imapc_untagged_reply {
        void *untagged_box_context;
 };
 
+enum imapc_parameter_flags {
+       IMAPC_PARAMETER_CLIENT_DISABLED = BIT(1),
+};
+
+struct imapc_parameters {
+       const char *session_id_prefix;
+       const char *temp_path_prefix;
+
+       /* imapc-storage creates custom paths based on the namespace user,
+          this cannot be read from the config directly. */
+       const char *override_dns_client_socket_path;
+       const char *override_rawlog_dir;
+
+       enum imapc_parameter_flags flags;
+};
+
 enum imapc_state_change_event {
        IMAPC_STATE_CHANGE_AUTH_OK,
        IMAPC_STATE_CHANGE_AUTH_FAILED,