IMAP: Need to reset index for Palm pre

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@668 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-08-13 07:14:52 +00:00
parent 006d69de51
commit ba55a1f7ca
1 changed files with 4 additions and 0 deletions

View File

@ -1014,6 +1014,8 @@ public class ImapConnection extends AbstractConnection {
} else {
startUid = endUid = convertToLong(currentRange);
}
// Need to reset index for Palm pre
currentIndex = 0;
while (currentIndex < currentFolder.count() && currentFolder.getImapUid(currentIndex) < startUid) {
currentIndex++;
}
@ -1072,6 +1074,8 @@ public class ImapConnection extends AbstractConnection {
} else {
startUid = endUid = convertToLong(currentRange);
}
// Need to reset index for Palm pre
currentIndex = 0;
while (currentIndex < currentFolder.count() && (currentIndex + 1) < startUid) {
currentIndex++;
}