diff --git a/src/config.h b/src/config.h index a4b3ba68..f6779a0d 100644 --- a/src/config.h +++ b/src/config.h @@ -14,7 +14,7 @@ #define VERSION "1.1.1-pre" -#define BUILD 893 +#define BUILD 894 #define HOSTID "mailarchiver" diff --git a/src/imap.c b/src/imap.c index a4a3e5ee..1defd98f 100644 --- a/src/imap.c +++ b/src/imap.c @@ -132,7 +132,7 @@ int process_imap_folder(int sd, int *seq, char *folder, struct session_data *sda for(i=data->import->start_position; i<=messages; i++){ data->import->processed_messages++; - printf("processed: %7d\r", data->import->processed_messages); fflush(stdout); + if(data->quiet == 0){ printf("processed: %7d [%3d%%]\r", data->import->processed_messages, 100*i/messages); fflush(stdout); } snprintf(tag, sizeof(tag)-1, "A%d", *seq); snprintf(tagok, sizeof(tagok)-1, "A%d OK", (*seq)++); diff --git a/src/pop3.c b/src/pop3.c index 72534c6d..6071a529 100644 --- a/src/pop3.c +++ b/src/pop3.c @@ -124,7 +124,7 @@ int process_pop3_emails(int sd, struct session_data *sdata, struct __data *data, for(i=data->import->start_position; i<=data->import->total_messages; i++){ data->import->processed_messages++; - if(data->quiet == 0){ printf("processed: %7d\r", data->import->processed_messages); fflush(stdout); } + if(data->quiet == 0){ printf("processed: %7d [%3d%%]\r", data->import->processed_messages, 100*i/data->import->total_messages); fflush(stdout); } snprintf(buf, sizeof(buf)-1, "RETR %d\r\n", i);