diff --git a/ChangeLog b/ChangeLog index 9fd10e9d..f9d4ea32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ v0.61.3 25-Jul-2004 Removed the fdn parameter from the attach and un_attach functions, not needed anymore. + mbfido: + Changed netmail counters in the .msg import function. + v0.61.2 11-Jul-2004 - 25-Jul-2004 diff --git a/mbfido/msg.c b/mbfido/msg.c index f4a487f8..2b3e6d7a 100644 --- a/mbfido/msg.c +++ b/mbfido/msg.c @@ -79,8 +79,6 @@ int toss_msgs(void) Syslog('+',"Processed %d msg messages", files); } - net_msgs += files; - net_in += files; return files; } @@ -108,6 +106,7 @@ int toss_onemsg(char *msgname) unsigned short Attribute = 0; struct stat sb; + net_msgs++; temp = calloc(PATH_MAX, sizeof(char)); sprintf(temp, "%s/%s", CFG.msgs_path, msgname); @@ -369,8 +368,10 @@ int toss_onemsg(char *msgname) fclose(fp); if (rc == 0) { + net_in++; sprintf(temp, "%s/%s", CFG.msgs_path, msgname); - Syslog('m', "unlink(%s) rc=%d", temp, unlink(temp)); + if (unlink(temp) != 0) + WriteError("Can't remove %s", temp); } free(temp);