|
|
@ -50,6 +50,7 @@ sync_mailbox (mailbox_t * mbox, imap_t * imap, int flags, unsigned int max_size) |
|
|
|
char *p; |
|
|
|
char *p; |
|
|
|
int fd; |
|
|
|
int fd; |
|
|
|
int ret; |
|
|
|
int ret; |
|
|
|
|
|
|
|
int fetched = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (mbox->uidvalidity > 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 */ |
|
|
|
/* give some visual feedback that something is happening */ |
|
|
|
fputs (".", stdout); |
|
|
|
fputs (".", stdout); |
|
|
|
fflush (stdout); |
|
|
|
fflush (stdout); |
|
|
|
|
|
|
|
fetched++; |
|
|
|
|
|
|
|
|
|
|
|
ret = imap_fetch_message (imap, cur->uid, fd); |
|
|
|
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); |
|
|
|
unlink (path); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
puts (""); |
|
|
|
printf (" %d messages\n", fetched); |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|