removed some debug logging from rfc2ftn gate
This commit is contained in:
parent
f708e66b94
commit
792ef4649a
@ -4633,6 +4633,7 @@ v0.33.20 10-Feb-2002
|
|||||||
destination address.
|
destination address.
|
||||||
Corrected spelling errors in the Areamgr and Filemgr help
|
Corrected spelling errors in the Areamgr and Filemgr help
|
||||||
messages.
|
messages.
|
||||||
|
Removed some debug logging from tge RFC->FTN gate.
|
||||||
|
|
||||||
mball:
|
mball:
|
||||||
Will not crash anymore when it needs more then 10 minutes to
|
Will not crash anymore when it needs more then 10 minutes to
|
||||||
|
@ -76,7 +76,7 @@ rfcmsg *parsrfc(FILE *fp)
|
|||||||
} else
|
} else
|
||||||
cur->val = xstrcat(cur->val,buffer);
|
cur->val = xstrcat(cur->val,buffer);
|
||||||
} else {
|
} else {
|
||||||
Syslog('M', "this is a header line");
|
// Syslog('M', "this is a header line");
|
||||||
if (cur) {
|
if (cur) {
|
||||||
firstline=FALSE;
|
firstline=FALSE;
|
||||||
(cur->next) = (rfcmsg *)malloc(sizeof(rfcmsg));
|
(cur->next) = (rfcmsg *)malloc(sizeof(rfcmsg));
|
||||||
@ -109,7 +109,7 @@ rfcmsg *parsrfc(FILE *fp)
|
|||||||
/* at least one non blank char */
|
/* at least one non blank char */
|
||||||
(strspn(p+2, " \t\n") < strlen(p+2)) && (strspn(buffer,KWDCHARS) == (p-buffer))) {
|
(strspn(p+2, " \t\n") < strlen(p+2)) && (strspn(buffer,KWDCHARS) == (p-buffer))) {
|
||||||
*p='\0';
|
*p='\0';
|
||||||
Syslog('M', "This is a regular header");
|
// Syslog('M', "This is a regular header");
|
||||||
cur->key = xstrcpy(buffer);
|
cur->key = xstrcpy(buffer);
|
||||||
cur->val = xstrcpy(p+1);
|
cur->val = xstrcpy(p+1);
|
||||||
} else {
|
} else {
|
||||||
|
@ -455,12 +455,12 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
|||||||
fprintf(ofp, "\001TZUTC: %s\n", gmtoffset(Now));
|
fprintf(ofp, "\001TZUTC: %s\n", gmtoffset(Now));
|
||||||
fmsg->subj = oldsubj;
|
fmsg->subj = oldsubj;
|
||||||
if ((p = hdr((char *)"X-FTN-REPLYADDR",msg))) {
|
if ((p = hdr((char *)"X-FTN-REPLYADDR",msg))) {
|
||||||
Syslog('n', "replyaddr 1 %s", p);
|
// Syslog('n', "replyaddr 1 %s", p);
|
||||||
hdrsize += 10+strlen(p);
|
hdrsize += 10+strlen(p);
|
||||||
fprintf(ofp,"\1REPLYADDR:");
|
fprintf(ofp,"\1REPLYADDR:");
|
||||||
kludgewrite(p,ofp);
|
kludgewrite(p,ofp);
|
||||||
} else if (replyaddr) {
|
} else if (replyaddr) {
|
||||||
Syslog('n', "replyaddr 2");
|
// Syslog('n', "replyaddr 2");
|
||||||
hdrsize += 10+strlen(replyaddr);
|
hdrsize += 10+strlen(replyaddr);
|
||||||
fprintf(ofp,"\1REPLYADDR: ");
|
fprintf(ofp,"\1REPLYADDR: ");
|
||||||
kludgewrite(replyaddr,ofp);
|
kludgewrite(replyaddr,ofp);
|
||||||
@ -810,17 +810,17 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
|||||||
fflush(ofp);
|
fflush(ofp);
|
||||||
rewind(ofp);
|
rewind(ofp);
|
||||||
|
|
||||||
Syslog('n', "========== Fido start");
|
// Syslog('n', "========== Fido start");
|
||||||
while (fgets(temp, 4096, ofp) != NULL) {
|
// while (fgets(temp, 4096, ofp) != NULL) {
|
||||||
/*
|
/*
|
||||||
* Only log kludges, skip the body
|
* Only log kludges, skip the body
|
||||||
*/
|
*/
|
||||||
if ((temp[0] == '\001') || !strncmp(temp, "AREA:", 5) || !strncmp(temp, "SEEN-BY", 7)) {
|
// if ((temp[0] == '\001') || !strncmp(temp, "AREA:", 5) || !strncmp(temp, "SEEN-BY", 7)) {
|
||||||
Striplf(temp);
|
// Striplf(temp);
|
||||||
Syslogp('n', printable(temp, 0));
|
// Syslogp('n', printable(temp, 0));
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
Syslog('n', "========== Fido end");
|
// Syslog('n', "========== Fido end");
|
||||||
|
|
||||||
if (newsmode)
|
if (newsmode)
|
||||||
rc = postecho(NULL, fmsg->from, fmsg->to, origin, fmsg->subj, fmsg->date, fmsg->flags, 0, ofp, FALSE);
|
rc = postecho(NULL, fmsg->from, fmsg->to, origin, fmsg->subj, fmsg->date, fmsg->flags, 0, ofp, FALSE);
|
||||||
|
Reference in New Issue
Block a user