Skip to content

Commit

Permalink
imap.c: when logging client ID, log userid if authenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Aug 10, 2023
1 parent fdfff5e commit 4d2632c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion imap/imapd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3423,7 +3423,10 @@ static void cmd_id(char *tag)
buf_printf(&logbuf, "\"%s\"", val);
}

syslog(LOG_INFO, "client id sessionid=<%s>:%s", session_id(), buf_cstring(&logbuf));
syslog(LOG_INFO, "client id sessionid=<%s> userid=<%s>:%s",
session_id(),
imapd_userid ? imapd_userid : "",
buf_cstring(&logbuf));
buf_free(&logbuf);
}

Expand Down

0 comments on commit 4d2632c

Please sign in to comment.