removed some debug logging from rfc2ftn gate

This commit is contained in:
Michiel Broek 2002-02-24 22:13:13 +00:00
parent f708e66b94
commit 792ef4649a
3 changed files with 13 additions and 12 deletions

View File

@ -4633,6 +4633,7 @@ v0.33.20 10-Feb-2002
destination address.
Corrected spelling errors in the Areamgr and Filemgr help
messages.
Removed some debug logging from tge RFC->FTN gate.
mball:
Will not crash anymore when it needs more then 10 minutes to

View File

@ -76,7 +76,7 @@ rfcmsg *parsrfc(FILE *fp)
} else
cur->val = xstrcat(cur->val,buffer);
} else {
Syslog('M', "this is a header line");
// Syslog('M', "this is a header line");
if (cur) {
firstline=FALSE;
(cur->next) = (rfcmsg *)malloc(sizeof(rfcmsg));
@ -109,7 +109,7 @@ rfcmsg *parsrfc(FILE *fp)
/* at least one non blank char */
(strspn(p+2, " \t\n") < strlen(p+2)) && (strspn(buffer,KWDCHARS) == (p-buffer))) {
*p='\0';
Syslog('M', "This is a regular header");
// Syslog('M', "This is a regular header");
cur->key = xstrcpy(buffer);
cur->val = xstrcpy(p+1);
} else {

View File

@ -455,12 +455,12 @@ int rfc2ftn(FILE *fp, faddr *recipient)
fprintf(ofp, "\001TZUTC: %s\n", gmtoffset(Now));
fmsg->subj = oldsubj;
if ((p = hdr((char *)"X-FTN-REPLYADDR",msg))) {
Syslog('n', "replyaddr 1 %s", p);
// Syslog('n', "replyaddr 1 %s", p);
hdrsize += 10+strlen(p);
fprintf(ofp,"\1REPLYADDR:");
kludgewrite(p,ofp);
} else if (replyaddr) {
Syslog('n', "replyaddr 2");
// Syslog('n', "replyaddr 2");
hdrsize += 10+strlen(replyaddr);
fprintf(ofp,"\1REPLYADDR: ");
kludgewrite(replyaddr,ofp);
@ -810,17 +810,17 @@ int rfc2ftn(FILE *fp, faddr *recipient)
fflush(ofp);
rewind(ofp);
Syslog('n', "========== Fido start");
while (fgets(temp, 4096, ofp) != NULL) {
// Syslog('n', "========== Fido start");
// while (fgets(temp, 4096, ofp) != NULL) {
/*
* Only log kludges, skip the body
*/
if ((temp[0] == '\001') || !strncmp(temp, "AREA:", 5) || !strncmp(temp, "SEEN-BY", 7)) {
Striplf(temp);
Syslogp('n', printable(temp, 0));
}
}
Syslog('n', "========== Fido end");
// if ((temp[0] == '\001') || !strncmp(temp, "AREA:", 5) || !strncmp(temp, "SEEN-BY", 7)) {
// Striplf(temp);
// Syslogp('n', printable(temp, 0));
// }
// }
// Syslog('n', "========== Fido end");
if (newsmode)
rc = postecho(NULL, fmsg->from, fmsg->to, origin, fmsg->subj, fmsg->date, fmsg->flags, 0, ofp, FALSE);