Added debug logging
This commit is contained in:
parent
9e51c6dba7
commit
bc6bff0ec0
@ -5,6 +5,7 @@ v0.71.5 18-Aug-2005
|
|||||||
mbfido:
|
mbfido:
|
||||||
Removed debug logging for solved crash.
|
Removed debug logging for solved crash.
|
||||||
Code cleanup.
|
Code cleanup.
|
||||||
|
Added debug logging in rfc2ftn to track a rare problem.
|
||||||
|
|
||||||
mbdiff:
|
mbdiff:
|
||||||
Code cleanup.
|
Code cleanup.
|
||||||
|
@ -343,7 +343,7 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
|||||||
charset_set_in_out(charset,getrfcchrs(msgs.Charset));
|
charset_set_in_out(charset,getrfcchrs(msgs.Charset));
|
||||||
|
|
||||||
do {
|
do {
|
||||||
Syslog('m', "split loop, splitpart = %d", splitpart);
|
Syslog('m', "rfc2ftn: split loop, splitpart = %d", splitpart);
|
||||||
datasize = 0;
|
datasize = 0;
|
||||||
|
|
||||||
if (splitpart) {
|
if (splitpart) {
|
||||||
@ -734,15 +734,22 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
|||||||
rc = postnetmail(ofp, fmsg->from, fmsg->to, origin, fmsg->subj, fmsg->date,
|
rc = postnetmail(ofp, fmsg->from, fmsg->to, origin, fmsg->subj, fmsg->date,
|
||||||
fmsg->flags, FALSE, fmsg->from->zone, fmsg->to->zone);
|
fmsg->flags, FALSE, fmsg->from->zone, fmsg->to->zone);
|
||||||
|
|
||||||
|
Syslog('m', "rfc2ftn: message posted rc=%d", rc);
|
||||||
|
|
||||||
free(origin);
|
free(origin);
|
||||||
fclose(ofp);
|
fclose(ofp);
|
||||||
} while (needsplit);
|
} while (needsplit);
|
||||||
|
|
||||||
|
Syslog('m', "rfc2ftn: out of splitloop");
|
||||||
|
|
||||||
free(temp);
|
free(temp);
|
||||||
if (charset)
|
if (charset)
|
||||||
free(charset);
|
free(charset);
|
||||||
tidyrfc(msg);
|
tidyrfc(msg);
|
||||||
tidy_ftnmsg(fmsg);
|
tidy_ftnmsg(fmsg);
|
||||||
|
|
||||||
|
Syslog('m', "rfc2ftn: memory freed");
|
||||||
|
|
||||||
UpdateMsgs();
|
UpdateMsgs();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user