Fix handling of header data
* gmx.de returns values in an unusual order, leading to the bugs listed below Bug: 6962533 Bug: 6963464 Change-Id: I937b617c1993ab824f5e55ad0b072afeaee61b5c
This commit is contained in:
parent
bc53491b95
commit
11efcb7a1b
@ -461,7 +461,6 @@ public class Imap2SyncService extends AbstractSyncService {
|
||||
int flag = 0;
|
||||
String flags = null;
|
||||
int uid = 0;
|
||||
boolean bodystructure = false;
|
||||
|
||||
Message msg = new Message();
|
||||
msg.mMailboxKey = mailboxId;
|
||||
@ -469,9 +468,6 @@ public class Imap2SyncService extends AbstractSyncService {
|
||||
try {
|
||||
while (true) {
|
||||
String atm = p.parseAtom();
|
||||
// We're done if we have all of these, regardless of order
|
||||
if (date != null && flags != null && bodystructure)
|
||||
break;
|
||||
// Not sure if this case is possible
|
||||
if (atm == null)
|
||||
break;
|
||||
@ -494,8 +490,6 @@ public class Imap2SyncService extends AbstractSyncService {
|
||||
flag = 1;
|
||||
} else if (atm.equalsIgnoreCase("BODYSTRUCTURE")) {
|
||||
msg.mSyncData = p.parseList();
|
||||
bodystructure = true;
|
||||
//parseBodystructure(msg, new Parser(bs), "", 1, parts);
|
||||
} else if (atm.equalsIgnoreCase("INTERNALDATE")) {
|
||||
date = parseInternaldate(p.parseString());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user