1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -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:
Jesse Vincent 2010-07-11 12:31:22 +00:00
parent ae339f1ac8
commit 9321a045d9

View File

@ -915,11 +915,8 @@ public class ImapStore extends Store
try
{
int count = 0;
int start = mMessageCount - 299;
if (start < 1)
{
start = 1;
}
int start = 1;
List<ImapResponse> responses = executeSimpleCommand(String.format("SEARCH %d:* UNSEEN NOT DELETED", start));
for (ImapResponse response : responses)
{
@ -943,11 +940,8 @@ public class ImapStore extends Store
try
{
int count = 0;
int start = mMessageCount - 299;
if (start < 1)
{
start = 1;
}
int start = 1;
List<ImapResponse> responses = executeSimpleCommand(String.format("SEARCH %d:* FLAGGED NOT DELETED", start));
for (ImapResponse response : responses)
{