]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-client-connection - Make sure the client event catergory is always...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 24 Aug 2022 17:29:48 +0000 (19:29 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 3 Oct 2022 10:34:30 +0000 (10:34 +0000)
src/lib-smtp/smtp-client-connection.c
src/lib-smtp/smtp-client-private.h
src/lib-smtp/smtp-client.c

index d0ed6804e9f91807edfc796f9c7b2116abb645d1..1bb2458d63f0a03aba6a5c871ca1c191a96fc5fd 100644 (file)
@@ -2203,6 +2203,7 @@ smtp_client_connection_do_create(struct smtp_client *client, const char *name,
                                smtp_protocol_name(conn->protocol)));
        event_add_str(conn_event, "protocol",
                      smtp_protocol_name(conn->protocol));
+       event_add_category(conn_event, &event_category_smtp_client);
        event_set_forced_debug(conn_event, (set != NULL && set->debug));
 
        conn->conn.event_parent = conn_event;
index 842eecc59cfc282b8582715e924bebca6174277a..7d58c7875f54d222fe5d7b55c681a378700e572b 100644 (file)
@@ -257,6 +257,8 @@ struct smtp_client {
        struct connection_list *conn_list;
 };
 
+extern struct event_category event_category_smtp_client;
+
 /*
  * Command
  */
index 9a55126fab8887dbdfddd0032c32e2542d32656f..86c8bb1d541ca46016f3e3af62a0c2e47854a22b 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "smtp-client-private.h"
 
-static struct event_category event_category_smtp_client = {
+struct event_category event_category_smtp_client = {
        .name = "smtp-client"
 };