Skip to content

Commit

Permalink
imapd: log all unusual tags
Browse files Browse the repository at this point in the history
  • Loading branch information
elliefm committed Sep 25, 2024
1 parent 8eabde1 commit 5e9e139
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imap/imapd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 5e9e139

Please sign in to comment.