mirror of
https://github.com/moparisthebest/k-9
synced 2024-08-13 17:03:48 -04:00
Better message flag management so that we don't end up with (POP3) messages having both X_DOWNLOADED_FULL and X_DOWNLOADED_PARTIAL
This commit is contained in:
parent
46bff831d1
commit
c497485b2f
@ -1489,6 +1489,10 @@ public class MessagingController implements Runnable
|
|||||||
|
|
||||||
Message localMessage = localFolder.getMessage(message.getUid());
|
Message localMessage = localFolder.getMessage(message.getUid());
|
||||||
|
|
||||||
|
|
||||||
|
// Certain (POP3) servers give you the whole message even when you ask for only the first x Kb
|
||||||
|
if (!message.isSet(Flag.X_DOWNLOADED_FULL))
|
||||||
|
{
|
||||||
/*
|
/*
|
||||||
* Mark the message as fully downloaded if the message size is smaller than
|
* Mark the message as fully downloaded if the message size is smaller than
|
||||||
* the FETCH_BODY_SANE_SUGGESTED_SIZE, otherwise mark as only a partial
|
* the FETCH_BODY_SANE_SUGGESTED_SIZE, otherwise mark as only a partial
|
||||||
@ -1506,6 +1510,7 @@ public class MessagingController implements Runnable
|
|||||||
localMessage.setFlag(Flag.X_DOWNLOADED_PARTIAL, true);
|
localMessage.setFlag(Flag.X_DOWNLOADED_PARTIAL, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user