mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Improved error logging
SVN revision: 2165
This commit is contained in:
parent
35d0a5223c
commit
03763e6627
20
src/elogd.c
20
src/elogd.c
@ -2274,14 +2274,18 @@ int sendmail(LOGBOOK * lbs, char *smtp_host, char *from, char *to, char *text, c
|
|||||||
recv_string(s, str, strsize, 3000);
|
recv_string(s, str, strsize, 3000);
|
||||||
if (strchr(str, '\r'))
|
if (strchr(str, '\r'))
|
||||||
*strchr(str, '\r') = 0;
|
*strchr(str, '\r') = 0;
|
||||||
if (verbose)
|
if (atoi(str) >= 100) {
|
||||||
efputs(decoded);
|
strcat(str, "\n");
|
||||||
write_logfile(lbs, str);
|
if (verbose)
|
||||||
base64_decode(str + 4, decoded);
|
efputs(str);
|
||||||
strcat(decoded, "\n");
|
write_logfile(lbs, str);
|
||||||
if (verbose)
|
} else {
|
||||||
efputs(decoded);
|
base64_decode(str + 4, decoded);
|
||||||
write_logfile(lbs, decoded);
|
strcat(decoded, "\n");
|
||||||
|
if (verbose)
|
||||||
|
efputs(decoded);
|
||||||
|
write_logfile(lbs, decoded);
|
||||||
|
}
|
||||||
if (!check_smtp_error(str, 334, error, error_size))
|
if (!check_smtp_error(str, 334, error, error_size))
|
||||||
goto smtp_error;
|
goto smtp_error;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user