Changed netmail counters in .msg import function

This commit is contained in:
Michiel Broek 2004-07-30 18:49:25 +00:00
parent b0e53bb1fa
commit 54e96cf793
2 changed files with 7 additions and 3 deletions

View File

@ -7,6 +7,9 @@ v0.61.3 25-Jul-2004
Removed the fdn parameter from the attach and un_attach Removed the fdn parameter from the attach and un_attach
functions, not needed anymore. functions, not needed anymore.
mbfido:
Changed netmail counters in the .msg import function.
v0.61.2 11-Jul-2004 - 25-Jul-2004 v0.61.2 11-Jul-2004 - 25-Jul-2004

View File

@ -79,8 +79,6 @@ int toss_msgs(void)
Syslog('+',"Processed %d msg messages", files); Syslog('+',"Processed %d msg messages", files);
} }
net_msgs += files;
net_in += files;
return files; return files;
} }
@ -108,6 +106,7 @@ int toss_onemsg(char *msgname)
unsigned short Attribute = 0; unsigned short Attribute = 0;
struct stat sb; struct stat sb;
net_msgs++;
temp = calloc(PATH_MAX, sizeof(char)); temp = calloc(PATH_MAX, sizeof(char));
sprintf(temp, "%s/%s", CFG.msgs_path, msgname); sprintf(temp, "%s/%s", CFG.msgs_path, msgname);
@ -369,8 +368,10 @@ int toss_onemsg(char *msgname)
fclose(fp); fclose(fp);
if (rc == 0) { if (rc == 0) {
net_in++;
sprintf(temp, "%s/%s", CFG.msgs_path, msgname); 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); free(temp);