]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
plugins/quota-clone: Split off quota_clone_changed_user()
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Mon, 13 Jul 2026 12:51:30 +0000 (14:51 +0200)
committerKarl Fleischmann <karl.fleischmann@open-xchange.com>
Wed, 15 Jul 2026 12:34:43 +0000 (14:34 +0200)
src/plugins/quota-clone/quota-clone-plugin.c

index 520584cdbc99eab09f9a73e68fd90353a17656f8..692e003dfe5674fc0fbf7b2628c8443db20c2247 100644 (file)
@@ -172,9 +172,9 @@ static struct mail_user *quota_mailbox_get_user(struct mailbox *box)
        return ns->owner != NULL ? ns->owner : ns->user;
 }
 
-static void quota_clone_changed(struct mailbox *box)
+static void
+quota_clone_changed_user(struct mail_user *user)
 {
-       struct mail_user *user = quota_mailbox_get_user(box);
        struct quota_clone_user *quser =
                QUOTA_CLONE_USER_CONTEXT_REQUIRE(user);
 
@@ -185,6 +185,12 @@ static void quota_clone_changed(struct mailbox *box)
        }
 }
 
+static void quota_clone_changed(struct mailbox *box)
+{
+       struct mail_user *user = quota_mailbox_get_user(box);
+       quota_clone_changed_user(user);
+}
+
 static int quota_clone_save_finish(struct mail_save_context *ctx)
 {
        union mailbox_module_context *qbox =