mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-01-12 14:40:12 +01:00
fixed a pilerimport counter
This commit is contained in:
parent
22d9828e8f
commit
47de67e4bc
@ -60,6 +60,7 @@ int import_from_mailbox(char *mailbox, struct session_data *sdata, struct __data
|
||||
tot_msgs++;
|
||||
if(f){
|
||||
fclose(f);
|
||||
f = NULL;
|
||||
rc = import_message(fname, sdata, data, cfg);
|
||||
if(rc == ERR) ret = ERR;
|
||||
unlink(fname);
|
||||
@ -81,7 +82,7 @@ int import_from_mailbox(char *mailbox, struct session_data *sdata, struct __data
|
||||
if(rc == ERR) ret = ERR;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user