Fix potential index issues when less than 10 emails are in the folder when fetching messages in WebDavStore.
This commit is contained in:
parent
7a5b4d27e1
commit
da46773f74
1 changed files with 4 additions and 0 deletions
|
@ -992,6 +992,10 @@ public class WebDavStore extends Store {
|
|||
throw new MessagingException(String.format("Invalid message set %d %d", start, end));
|
||||
}
|
||||
|
||||
if (start == 0 && end < 10) {
|
||||
end = 10;
|
||||
}
|
||||
|
||||
/** Verify authentication */
|
||||
messageBody = getMessagesXml();
|
||||
|
||||
|
|
Loading…
Reference in a new issue