mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28:50 -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,15 +513,18 @@ public class Pop3Store extends Store
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
String[] uidParts = response.split(" ");
|
String[] uidParts = response.split(" ");
|
||||||
Integer msgNum = Integer.valueOf(uidParts[0]);
|
if (uidParts.length >= 2)
|
||||||
String msgUid = uidParts[1];
|
|
||||||
if (msgNum >= start && msgNum <= end)
|
|
||||||
{
|
{
|
||||||
Pop3Message message = mMsgNumToMsgMap.get(msgNum);
|
Integer msgNum = Integer.valueOf(uidParts[0]);
|
||||||
if (message == null)
|
String msgUid = uidParts[1];
|
||||||
|
if (msgNum >= start && msgNum <= end)
|
||||||
{
|
{
|
||||||
message = new Pop3Message(msgUid, this);
|
Pop3Message message = mMsgNumToMsgMap.get(msgNum);
|
||||||
indexMessage(msgNum, message);
|
if (message == null)
|
||||||
|
{
|
||||||
|
message = new Pop3Message(msgUid, this);
|
||||||
|
indexMessage(msgNum, message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user