Removed some heavy debugging with RFC message processing

This commit is contained in:
Michiel Broek
2002-12-07 18:47:26 +00:00
parent 51afb78b2b
commit 4569e7233f
4 changed files with 3 additions and 12 deletions

View File

@@ -59,7 +59,6 @@ extern int net_in; /* Total netmails processed */
extern int net_out; /* Netmails exported */
extern int net_imp; /* Netmails imported */
extern int net_bad; /* Bad netmails */
extern int most_debug; /* Headvy debugging flag */
@@ -244,9 +243,7 @@ int postnetmail(FILE *fp, faddr *f, faddr *t, char *orig, char *subject, time_t
/*
* Send this netmail via ftn2rfc -> postemail.
*/
most_debug = TRUE;
result = ftn2rfc(f, t, subject, orig, mdate, flags, fp);
most_debug = FALSE;
return result;
}
@@ -278,9 +275,7 @@ int postnetmail(FILE *fp, faddr *f, faddr *t, char *orig, char *subject, time_t
break;
case FILEMGR: result = FileMgr(f, t, msgid, subject, mdate, flags, fp);
break;
case EMAIL: most_debug = TRUE;
result = ftn2rfc(f, t, subject, orig, mdate, flags, fp);
most_debug = FALSE;
case EMAIL: result = ftn2rfc(f, t, subject, orig, mdate, flags, fp);
if (result) {
if (result == 2)
Bounce(f, t, fp, (char *)"Could not post email");

View File

@@ -96,7 +96,6 @@ static HEADER RequiredHeaders[] = {
* External variables
*/
extern int do_quiet;
extern int most_debug;
extern int news_in;
extern int news_dupe;
extern int check_dupe;
@@ -556,9 +555,7 @@ void NewsUUCP(void)
printf("Process UUCP Newsbatch\n");
}
most_debug = TRUE;
rc = UnpackOne(&fd, &i);
most_debug = FALSE;
WaitForChildren(i);
Syslog('+', "End of UUCP batch, rc=%d", rc);
do_flush = TRUE;

View File

@@ -68,7 +68,6 @@ int marker = 0;
*/
extern int do_quiet;
extern int do_learn;
extern int most_debug;
extern int news_in;
extern int news_imp;
extern int news_dupe;
@@ -299,9 +298,7 @@ int do_one_group(List **art, char *grpname, char *ftntag, int maxarticles)
/*
* If the message isn't a dupe, it must be new for us.
*/
most_debug = TRUE;
get_article(tmp->msgid, ftntag);
most_debug = FALSE;
fetched++;
}
}