]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Add mail_storage_service_user_get_userdb_fields()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sat, 7 Jan 2023 20:31:41 +0000 (22:31 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Nov 2023 12:11:41 +0000 (14:11 +0200)
src/lib-storage/mail-storage-service.c
src/lib-storage/mail-storage-service.h

index a071a57b387a471edb429116874e67944d33cb55..bf782a1f2662dc73cbc4b4438a9467de631c1567 100644 (file)
@@ -1664,6 +1664,12 @@ void mail_storage_service_user_unref(struct mail_storage_service_user **_user)
        pool_unref(&user->pool);
 }
 
+const char *const *
+mail_storage_service_user_get_userdb_fields(struct mail_storage_service_user *user)
+{
+       return user->input.userdb_fields;
+}
+
 void mail_storage_service_init_settings(struct mail_storage_service_ctx *ctx,
                                        const struct mail_storage_service_input *input)
 {
index 597a025a056d9e47ddb4fc456d0d4c2377b814cc..9dfefdf59a6d0c0d6d560c57aaa64121abba86aa 100644 (file)
@@ -129,6 +129,9 @@ int mail_storage_service_lookup_next(struct mail_storage_service_ctx *ctx,
                                     const char **error_r);
 void mail_storage_service_user_ref(struct mail_storage_service_user *user);
 void mail_storage_service_user_unref(struct mail_storage_service_user **user);
+/* Return userdb fields for the user. */
+const char *const *
+mail_storage_service_user_get_userdb_fields(struct mail_storage_service_user *user);
 /* Initialize iterating through all users. */
 void mail_storage_service_all_init(struct mail_storage_service_ctx *ctx);
 /* Initialize iterating through all users with a user mask hint to the