From c7e39295ac57f41d233f9d3a544fb7273df3a861 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 23675419072..e33a5f72c5d 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; } }