From 845f60bece6e552279405e3dc272058dee2d15e2 Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 4 Sep 2014 14:57:23 +0200 Subject: [PATCH] pop3 import message fixes --- src/pop3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pop3.c b/src/pop3.c index ebed017f..10462b59 100644 --- a/src/pop3.c +++ b/src/pop3.c @@ -116,13 +116,13 @@ int process_pop3_emails(int sd, struct session_data *sdata, struct __data *data, else return ERR; - printf("found %d messages\n", data->import->total_messages); + if(data->quiet == 0) printf("found %d messages\n", data->import->total_messages); if(data->import->total_messages <= 0) return OK; for(i=data->import->start_position; i<=data->import->total_messages; i++){ data->import->processed_messages++; - printf("processed: %7d\r", data->import->processed_messages); fflush(stdout); + if(data->quiet == 0){ printf("processed: %7d\r", data->import->processed_messages); fflush(stdout); } snprintf(buf, sizeof(buf)-1, "RETR %d\r\n", i); @@ -222,7 +222,7 @@ int process_pop3_emails(int sd, struct session_data *sdata, struct __data *data, snprintf(buf, sizeof(buf)-1, "QUIT\r\n"); n = write1(sd, buf, strlen(buf), use_ssl, data->ssl); - printf("\n"); + if(data->quiet == 0) printf("\n"); time(&(data->import->finished)); data->import->status = 2;