]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3: Add reason_code=pop3:cmd_<command name> to events
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 17 Mar 2021 15:40:46 +0000 (17:40 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 29 Sep 2021 10:09:58 +0000 (10:09 +0000)
src/pop3/pop3-client.c

index 65553c7248b47d4f9789faf48486a6f73e1854ac..d44ae7f464e35485a91440d68a1f17087604ad3c 100644 (file)
@@ -744,8 +744,13 @@ bool client_handle_input(struct client *client)
                        *args++ = '\0';
 
                T_BEGIN {
+                       const char *reason_code =
+                               event_reason_code_prefix("pop3", "cmd_", line);
+                       struct event_reason *reason =
+                               event_reason_begin(reason_code);
                        ret = client_command_execute(client, line,
                                                     args != NULL ? args : "");
+                       event_reason_end(&reason);
                } T_END;
                if (ret >= 0) {
                        client->bad_counter = 0;