mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 06:41:59 +01:00
src: pilerimport counter display fix
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
ae5123ac3c
commit
3289b3fc27
@ -51,7 +51,7 @@ int import_from_mailbox(char *mailbox, struct session_data *sdata, struct __data
|
|||||||
}
|
}
|
||||||
else unlink(fname);
|
else unlink(fname);
|
||||||
|
|
||||||
if(data->quiet == 0) printf("processed: %7d\r", tot_msgs); fflush(stdout);
|
if(data->quiet == 0){ printf("processed: %7d\r", tot_msgs); fflush(stdout); }
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(fname, sizeof(fname)-1, "%ld-%d", t, tot_msgs);
|
snprintf(fname, sizeof(fname)-1, "%ld-%d", t, tot_msgs);
|
||||||
@ -71,7 +71,7 @@ int import_from_mailbox(char *mailbox, struct session_data *sdata, struct __data
|
|||||||
}
|
}
|
||||||
else unlink(fname);
|
else unlink(fname);
|
||||||
|
|
||||||
if(data->quiet == 0) printf("processed: %7d\r", tot_msgs); fflush(stdout);
|
if(data->quiet == 0){ printf("processed: %7d\r", tot_msgs); fflush(stdout); }
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(F);
|
fclose(F);
|
||||||
|
@ -87,7 +87,7 @@ int import_from_maildir(char *directory, struct session_data *sdata, struct __da
|
|||||||
|
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
if(data->quiet == 0) printf("processed: %7d\r", *tot_msgs); fflush(stdout);
|
if(data->quiet == 0){ printf("processed: %7d\r", *tot_msgs); fflush(stdout); }
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
printf("%s is not a file\n", fname);
|
printf("%s is not a file\n", fname);
|
||||||
|
Loading…
Reference in New Issue
Block a user