Fix potential index issues when less than 10 emails are in the folder when fetching messages in WebDavStore.

This commit is contained in:
Matthew Brace 2009-02-09 01:50:31 +00:00
parent 7a5b4d27e1
commit da46773f74

View file

@ -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();