Updated some debug logging, fixed JAM lock error.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||
# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
@@ -344,7 +344,7 @@ distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$/$$file $(distdir)/$$file; \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* File ..................: mbfido/postecho.c
|
||||
* Purpose ...............: Post echomail message.
|
||||
* Last modification date : 25-Aug-2001
|
||||
* Last modification date : 29-Aug-2001
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2001
|
||||
@@ -183,16 +183,16 @@ int postecho(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj,
|
||||
qualify *qal = NULL, *tmpq;
|
||||
FILE *nfp, *qp;
|
||||
|
||||
Syslog('M', "Entering postecho, area %s %s", msgs.Tag, msgs.Name);
|
||||
Syslog('M', "p_from: %s", ascfnode(p_from, 0xff));
|
||||
Syslog('M', "from : %s", ascfnode(f, 0xff));
|
||||
Syslog('M', "to : %s", ascfnode(t, 0xff));
|
||||
Syslog('M', "subj : %s", printable(subj, 0));
|
||||
Syslog('M', "origin: %s", orig);
|
||||
Syslog('M', "date : %s", rfcdate(mdate));
|
||||
Syslog('M', "flags : %08x", flags);
|
||||
Syslog('M', "cost : %d", cost);
|
||||
Syslog('M', "tonews: %s", tonews ? "True":"False");
|
||||
// Syslog('M', "Entering postecho, area %s %s", msgs.Tag, msgs.Name);
|
||||
// Syslog('M', "p_from: %s", ascfnode(p_from, 0xff));
|
||||
// Syslog('M', "from : %s", ascfnode(f, 0xff));
|
||||
// Syslog('M', "to : %s", ascfnode(t, 0xff));
|
||||
// Syslog('M', "subj : %s", printable(subj, 0));
|
||||
// Syslog('M', "origin: %s", orig);
|
||||
// Syslog('M', "date : %s", rfcdate(mdate));
|
||||
// Syslog('M', "flags : %08x", flags);
|
||||
// Syslog('M', "cost : %d", cost);
|
||||
// Syslog('M', "tonews: %s", tonews ? "True":"False");
|
||||
|
||||
memset(&Link, 0, sizeof(Link));
|
||||
crc = 0xffffffff;
|
||||
@@ -255,7 +255,7 @@ int postecho(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj,
|
||||
while ((fgets(buf, 2048, fp)) != NULL) {
|
||||
|
||||
Striplf(buf);
|
||||
Syslogp('M', printable(buf, 0));
|
||||
// Syslogp('M', printable(buf, 0));
|
||||
|
||||
if (First && (!strncmp(buf, "AREA:", 5))) {
|
||||
crc = upd_crc32(buf, crc, strlen(buf));
|
||||
|
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* File ..................: mbfido/rfc2ftn.c
|
||||
* Purpose ...............: Convert RFC to FTN
|
||||
* Last modification date : 14-Aug-2001
|
||||
* Last modification date : 29-Aug-2001
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2001
|
||||
@@ -154,12 +154,12 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
||||
if (recipient)
|
||||
Syslog('m', "Recipient: %s", ascfnode(recipient, 0xff));
|
||||
rewind(fp);
|
||||
Syslog('m', "========== RFC Start");
|
||||
while ((fgets(temp, 4095, fp)) != NULL) {
|
||||
Syslogp('m', printable(temp, 0));
|
||||
}
|
||||
Syslog('m', "========== RFC end");
|
||||
rewind(fp);
|
||||
// Syslog('m', "========== RFC Start");
|
||||
// while ((fgets(temp, 4095, fp)) != NULL) {
|
||||
// Syslogp('m', printable(temp, 0));
|
||||
// }
|
||||
// Syslog('m', "========== RFC end");
|
||||
// rewind(fp);
|
||||
msg = parsrfc(fp);
|
||||
incode = outcode = CHRS_NOTSET;
|
||||
pgpsigned = FALSE;
|
||||
@@ -198,7 +198,7 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
||||
|
||||
if (!CFG.allowcontrol) {
|
||||
if (hdr((char *)"Control",msg)) {
|
||||
Syslog('n', "skipping news message");
|
||||
Syslog('+', "Control message skipped");
|
||||
tidyrfc(msg);
|
||||
return 1;
|
||||
}
|
||||
@@ -530,27 +530,6 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
||||
fprintf(ofp,"\1ACUPDATE: MODIFY %s %08lx\n", acup_a,acup_n);
|
||||
}
|
||||
}
|
||||
#ifdef FSC_0070
|
||||
/* FSC-0070 */
|
||||
if((p = hdr((char *)"Message-ID", msg)) && !(hdr((char *)"X-FTN-RFCID", msg))) {
|
||||
q = strdup(p);
|
||||
fprintf(ofp,"\1RFCID:");
|
||||
if ((l = strrchr(q, '<')) && (r = strchr(q, '>')) && (l < r)) {
|
||||
*l++ = ' ';
|
||||
while(*l && isspace(*l))
|
||||
l++;
|
||||
l--; /* leading ' ' */
|
||||
*r-- = '\0';
|
||||
while(*r && isspace(*r))
|
||||
*r-- = '\0';
|
||||
} else
|
||||
l = q;
|
||||
kludgewrite(l, ofp);
|
||||
hdrsize += 6 + strlen(l);
|
||||
free(q);
|
||||
}
|
||||
#endif /* FSC_0070 */
|
||||
|
||||
if (!(hdr((char *)"X-FTN-Tearline", msg)) && !(hdr((char *)"X-FTN-TID", msg))) {
|
||||
sprintf(temp, " MBSE-FIDO %s", VERSION);
|
||||
hdrsize += 4 + strlen(temp);
|
||||
@@ -836,10 +815,10 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
||||
/*
|
||||
* Only log kludges, skip the body
|
||||
*/
|
||||
// if ((temp[0] == '\001') || !strncmp(temp, "AREA:", 5) || !strncmp(temp, "SEEN-BY", 7)) {
|
||||
// Striplf(temp);
|
||||
if ((temp[0] == '\001') || !strncmp(temp, "AREA:", 5) || !strncmp(temp, "SEEN-BY", 7)) {
|
||||
Striplf(temp);
|
||||
Syslogp('n', printable(temp, 0));
|
||||
// }
|
||||
}
|
||||
}
|
||||
Syslog('n', "========== Fido end");
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* File ..................: mbfido/scannews.c
|
||||
* Purpose ...............: Scan for new News
|
||||
* Last modification date : 04-Aug-2001
|
||||
* Last modification date : 29-Aug-2001
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2001
|
||||
@@ -340,7 +340,6 @@ int get_article(char *msgid, char *ftntag)
|
||||
break;
|
||||
}
|
||||
|
||||
news_in++;
|
||||
IsDoing("Article %d", (news_in));
|
||||
retval = rfc2ftn(fp, NULL);
|
||||
fclose(fp);
|
||||
|
Reference in New Issue
Block a user