From 5e9e13990955523bd67e75f1165cfc7d08ca0a8d Mon Sep 17 00:00:00 2001 From: ellie timoney Date: Wed, 25 Sep 2024 13:45:53 +1000 Subject: [PATCH] imapd: log all unusual tags --- imap/imapd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imap/imapd.c b/imap/imapd.c index c84f6c0c1f..119067aa8f 100644 --- a/imap/imapd.c +++ b/imap/imapd.c @@ -1565,6 +1565,9 @@ static void record_client_tag_behaviour(const char *tag) return; } + /* if we haven't returned yet there's some odd stuff in there */ + xsyslog(LOG_DEBUG, "saw an unusual tag", "tag=<%s>", tag); + /* inclusive checks */ if ((saw & TAG_SAW_DOT)) { client_behavior.did_tag_dot = 1; @@ -1583,7 +1586,6 @@ static void record_client_tag_behaviour(const char *tag) } if ((saw & TAG_SAW_OTHER)) { - xsyslog(LOG_DEBUG, "saw an unusual tag", "tag=<%s>", tag); client_behavior.did_tag_other = 1; } }