mirror of
https://git.code.sf.net/p/isync/isync
synced 2026-03-02 18:23:35 +01:00
display how many messages were fetched from the server
This commit is contained in:
4
sync.c
4
sync.c
@@ -50,6 +50,7 @@ sync_mailbox (mailbox_t * mbox, imap_t * imap, int flags, unsigned int max_size)
|
||||
char *p;
|
||||
int fd;
|
||||
int ret;
|
||||
int fetched = 0;
|
||||
|
||||
if (mbox->uidvalidity > 0)
|
||||
{
|
||||
@@ -172,6 +173,7 @@ sync_mailbox (mailbox_t * mbox, imap_t * imap, int flags, unsigned int max_size)
|
||||
/* give some visual feedback that something is happening */
|
||||
fputs (".", stdout);
|
||||
fflush (stdout);
|
||||
fetched++;
|
||||
|
||||
ret = imap_fetch_message (imap, cur->uid, fd);
|
||||
|
||||
@@ -195,7 +197,7 @@ sync_mailbox (mailbox_t * mbox, imap_t * imap, int flags, unsigned int max_size)
|
||||
unlink (path);
|
||||
}
|
||||
}
|
||||
puts ("");
|
||||
printf (" %d messages\n", fetched);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user