Skip to content
Snippets Groups Projects
Commit 82b6ad49 authored by rswindell's avatar rswindell
Browse files

Added response debug log entries during SMTP authentication.

parent 2314801c
No related branches found
No related tags found
No related merge requests found
......@@ -2279,6 +2279,8 @@ static void smtp_thread(void* arg)
sockprintf(socket,badarg_rsp);
continue;
}
if(startup->options&MAIL_OPT_DEBUG_RX_RSP)
lprintf("%04d SMTP RX: %s",socket,buf);
if(auth_login) {
if(b64_decode(user_name,sizeof(user_name),buf,rd)<1) {
sockprintf(socket,badarg_rsp);
......@@ -2295,6 +2297,8 @@ static void smtp_thread(void* arg)
sockprintf(socket,badarg_rsp);
continue;
}
if(startup->options&MAIL_OPT_DEBUG_RX_RSP)
lprintf("%04d RX: %s",socket,buf);
if(auth_login) {
if(b64_decode(user_pass,sizeof(user_pass),buf,rd)<1) {
sockprintf(socket,badarg_rsp);
......@@ -2355,6 +2359,9 @@ static void smtp_thread(void* arg)
sockprintf(socket,badarg_rsp);
continue;
}
if(startup->options&MAIL_OPT_DEBUG_RX_RSP)
lprintf("%04d RX: %s",socket,buf);
if(b64_decode(response,sizeof(response),buf,rd)<1) {
sockprintf(socket,badarg_rsp);
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment