Changed netmail counters in .msg import function
This commit is contained in:
parent
b0e53bb1fa
commit
54e96cf793
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user