imap gui import counter fix

This commit is contained in:
SJ 2013-09-05 22:38:03 +02:00
parent cba9628780
commit 5bbf9458af

View File

@ -23,6 +23,9 @@
#include <piler.h>
void update_import_job_stat(struct session_data *sdata, struct __data *data);
int get_message_length_from_imap_answer(char *s, int *_1st_line_bytes){
char *p, *q;
int len=0;
@ -204,6 +207,13 @@ int process_imap_folder(int sd, int *seq, char *folder, struct session_data *sda
if(dryrun == 0) rc = import_message(filename, sdata, data, cfg);
else rc = OK;
if(data->import->processed_messages % 100 == 0){
time(&(data->import->updated));
update_import_job_stat(sdata, data);
}
if(rc == ERR) printf("error importing '%s'\n", filename);
else unlink(filename);
}