mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-13 06:38:05 -05:00
Fixes Issue 790
Tolerate malformed UIDL response. Thanks to @bengnc for thorough analysis in Issue 790.
This commit is contained in:
parent
76f33ba5ff
commit
fa73f71e95
@ -513,6 +513,8 @@ public class Pop3Store extends Store
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
String[] uidParts = response.split(" ");
|
String[] uidParts = response.split(" ");
|
||||||
|
if (uidParts.length >= 2)
|
||||||
|
{
|
||||||
Integer msgNum = Integer.valueOf(uidParts[0]);
|
Integer msgNum = Integer.valueOf(uidParts[0]);
|
||||||
String msgUid = uidParts[1];
|
String msgUid = uidParts[1];
|
||||||
if (msgNum >= start && msgNum <= end)
|
if (msgNum >= start && msgNum <= end)
|
||||||
@ -527,6 +529,7 @@ public class Pop3Store extends Store
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void indexUids(ArrayList<String> uids)
|
private void indexUids(ArrayList<String> uids)
|
||||||
throws MessagingException, IOException
|
throws MessagingException, IOException
|
||||||
|
Loading…
Reference in New Issue
Block a user