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:
parent
ae339f1ac8
commit
9321a045d9
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user