mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-01-12 15:00:13 +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++;
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user