cosmetic fix for pilerimport

This commit is contained in:
SJ 2014-10-15 22:51:50 +02:00
parent a49c181c86
commit 636f673d3f
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
#define VERSION "1.1.1-pre" #define VERSION "1.1.1-pre"
#define BUILD 893 #define BUILD 894
#define HOSTID "mailarchiver" #define HOSTID "mailarchiver"

View File

@ -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++){ for(i=data->import->start_position; i<=messages; i++){
data->import->processed_messages++; 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(tag, sizeof(tag)-1, "A%d", *seq);
snprintf(tagok, sizeof(tagok)-1, "A%d OK", (*seq)++); snprintf(tagok, sizeof(tagok)-1, "A%d OK", (*seq)++);

View File

@ -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++){ for(i=data->import->start_position; i<=data->import->total_messages; i++){
data->import->processed_messages++; 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); snprintf(buf, sizeof(buf)-1, "RETR %d\r\n", i);