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

Bugfix in received telegram logging (garbage for recipient address).

parent bf6eeb88
No related branches found
No related tags found
No related merge requests found
......@@ -2079,8 +2079,8 @@ static void smtp_thread(void* arg)
section=sec_list[rcpt_count];
SAFECOPY(rcpt_name,iniReadString(rcptlst,section ,smb_hfieldtype(RECIPIENT),"unknown",value));
usernum=iniReadInteger(rcptlst,section ,smb_hfieldtype(RECIPIENTEXT),0);
SAFECOPY(rcpt_addr,iniReadString(rcptlst,section ,smb_hfieldtype(RECIPIENTNETADDR),str,value));
usernum=iniReadInteger(rcptlst,section ,smb_hfieldtype(RECIPIENTEXT),0);
SAFECOPY(rcpt_addr,iniReadString(rcptlst,section ,smb_hfieldtype(RECIPIENTNETADDR),rcpt_name,value));
if((i=putsmsg(&scfg,usernum,telegram_buf))==0)
lprintf(LOG_INFO,"%04d SMTP Created telegram (%ld/%u bytes) from %s to %s <%s>"
......@@ -4017,7 +4017,7 @@ void DLLCALL mail_server(void* arg)
return;
}
lprintf(LOG_DEBUG,"%04d SMTP Socket opened",server_socket);
lprintf(LOG_DEBUG,"%04d SMTP socket opened",server_socket);
/*****************************/
/* Listen for incoming calls */
......@@ -4041,7 +4041,7 @@ void DLLCALL mail_server(void* arg)
return;
}
lprintf(LOG_DEBUG,"%04d SMTP Socket bound to port %u"
lprintf(LOG_DEBUG,"%04d SMTP socket bound to port %u"
,server_socket, startup->smtp_port);
result = listen (server_socket, 1);
......
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