mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-04 14:52:24 -05:00
IMAP: fix uidNext implementation
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2187 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
ab4a482039
commit
2018b25768
@ -1629,7 +1629,10 @@ public abstract class ExchangeSession {
|
||||
recent++;
|
||||
}
|
||||
}
|
||||
long computedUidNext = messages.get(messages.size() - 1).getImapUid() + 1;
|
||||
long computedUidNext = 1;
|
||||
if (!messages.isEmpty()) {
|
||||
computedUidNext = messages.get(messages.size() - 1).getImapUid() + 1;
|
||||
}
|
||||
if (computedUidNext > uidNext) {
|
||||
uidNext = computedUidNext;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user