From: Karl Fleischmann Date: Wed, 28 Feb 2024 16:08:04 +0000 (+0100) Subject: lib-imap-client: Add new imapc_parameters struct X-Git-Tag: 2.4.1~824 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35a482e726117851344bd4205fd24d02b6c27e6d;p=thirdparty%2Fdovecot%2Fcore.git lib-imap-client: Add new imapc_parameters struct This will be necessary to allow a caller of imapc_client_init() to dynamically change attributes. --- diff --git a/src/lib-imap-client/imapc-client.h b/src/lib-imap-client/imapc-client.h index 555c3abdb9..c9d1e1c462 100644 --- a/src/lib-imap-client/imapc-client.h +++ b/src/lib-imap-client/imapc-client.h @@ -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,