upas/fs: deal with imap returning more uid's than allocated from previus "messages" command
This commit is contained in:
parent
5054c9795c
commit
a863cf8e7e
1 changed files with 5 additions and 1 deletions
|
@ -916,7 +916,11 @@ imap4read(Imap *imap, Mailbox *mb)
|
|||
|
||||
f = imap->f;
|
||||
n = imap->nuid;
|
||||
if(n < imap->nmsg) idprint(imap, "partial sync %d < %d\n", n, imap->nmsg);
|
||||
if(n > imap->muid){
|
||||
idprint(imap, "partial sync %d > %d\n", n, imap->muid);
|
||||
n = imap->nuid = imap->muid;
|
||||
} else if(n < imap->nmsg)
|
||||
idprint(imap, "partial sync %d < %d\n", n, imap->nmsg);
|
||||
qsort(f, n, sizeof f[0], (int(*)(void*, void*))fetchicmp);
|
||||
ll = &mb->root->part;
|
||||
for(i = 0; (m = *ll) != nil || i < n; ){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue