From 47de67e4bc0ad3c87871ed5be6d874f88438efd9 Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 3 Dec 2012 13:27:14 +0100 Subject: [PATCH] fixed a pilerimport counter --- src/pilerimport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pilerimport.c b/src/pilerimport.c index b0016491..757112fe 100644 --- a/src/pilerimport.c +++ b/src/pilerimport.c @@ -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);