fixed a pilerimport counter

This commit is contained in:
SJ 2012-12-03 13:27:14 +01:00
parent 22d9828e8f
commit 47de67e4bc

View File

@ -60,6 +60,7 @@ int import_from_mailbox(char *mailbox, struct session_data *sdata, struct __data
tot_msgs++; tot_msgs++;
if(f){ if(f){
fclose(f); fclose(f);
f = NULL;
rc = import_message(fname, sdata, data, cfg); rc = import_message(fname, sdata, data, cfg);
if(rc == ERR) ret = ERR; if(rc == ERR) ret = ERR;
unlink(fname); unlink(fname);
@ -81,7 +82,7 @@ int import_from_mailbox(char *mailbox, struct session_data *sdata, struct __data
if(rc == ERR) ret = ERR; if(rc == ERR) ret = ERR;
unlink(fname); unlink(fname);
if(quiet == 0) printf("processed: %7d\r", ++tot_msgs); fflush(stdout); if(quiet == 0) printf("processed: %7d\r", tot_msgs); fflush(stdout);
} }
fclose(F); fclose(F);