mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 21:22:26 -05:00
When counting remote unseen/flagged messages, don't window to only the
most recent 300 messages - Since we display this # to the user, the "last 300" heuristic ends up confusing and _wrong_ on a regular basis.
This commit is contained in:
parent
ae339f1ac8
commit
9321a045d9
@ -915,11 +915,8 @@ public class ImapStore extends Store
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int start = mMessageCount - 299;
|
int start = 1;
|
||||||
if (start < 1)
|
|
||||||
{
|
|
||||||
start = 1;
|
|
||||||
}
|
|
||||||
List<ImapResponse> responses = executeSimpleCommand(String.format("SEARCH %d:* UNSEEN NOT DELETED", start));
|
List<ImapResponse> responses = executeSimpleCommand(String.format("SEARCH %d:* UNSEEN NOT DELETED", start));
|
||||||
for (ImapResponse response : responses)
|
for (ImapResponse response : responses)
|
||||||
{
|
{
|
||||||
@ -943,11 +940,8 @@ public class ImapStore extends Store
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int start = mMessageCount - 299;
|
int start = 1;
|
||||||
if (start < 1)
|
|
||||||
{
|
|
||||||
start = 1;
|
|
||||||
}
|
|
||||||
List<ImapResponse> responses = executeSimpleCommand(String.format("SEARCH %d:* FLAGGED NOT DELETED", start));
|
List<ImapResponse> responses = executeSimpleCommand(String.format("SEARCH %d:* FLAGGED NOT DELETED", start));
|
||||||
for (ImapResponse response : responses)
|
for (ImapResponse response : responses)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user