From d2ab26be6038bd53b13a3ff18c403d6c192c1d91 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 17 Mar 2021 17:40:46 +0200 Subject: [PATCH] pop3: Add reason_code=pop3:cmd_ to events --- src/pop3/pop3-client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pop3/pop3-client.c b/src/pop3/pop3-client.c index 65553c7248..d44ae7f464 100644 --- a/src/pop3/pop3-client.c +++ b/src/pop3/pop3-client.c @@ -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; -- 2.47.3