]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Add 'internal' flag to struct client_command_context.
authorsergey.kitov <sergey.kitov@open-xchange.com>
Thu, 20 Apr 2023 07:41:37 +0000 (10:41 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 28 Apr 2023 11:32:21 +0000 (11:32 +0000)
imap_command_finished event is not issued when the flag is set.

src/imap/imap-client.c
src/imap/imap-client.h

index 5895f2ed83c34641c32e746dc1dadbca79f3da56..6d8dfce585bed75d574e9704ded5dda75a29507e 100644 (file)
@@ -1017,7 +1017,8 @@ void client_command_free(struct client_command_context **_cmd)
        if (client->mailbox_change_lock == cmd)
                client->mailbox_change_lock = NULL;
 
-       event_set_name(cmd->event, "imap_command_finished");
+       if (!cmd->internal)
+               event_set_name(cmd->event, "imap_command_finished");
        if (cmd->tagline_reply != NULL) {
                event_add_str(cmd->event, "tagged_reply_state",
                              t_strcut(cmd->tagline_reply, ' '));
index d3d4a9323398bbffd3b48e62cce755a0869ff6a8..ad1e6f5c5dd5373aabe6039d88e1ded9dde30477 100644 (file)
@@ -120,6 +120,7 @@ struct client_command_context {
        bool temp_executed:1; /* temporary execution state tracking */
        bool tagline_sent:1;
        bool executing:1;
+       bool internal:1;
 };
 
 struct imap_client_vfuncs {