Rather than accidentally reusing a public API function name with a

different signature, give the private command to pull a count
from the remote imap store its own name
This commit is contained in:
Jesse Vincent 2010-07-11 15:41:20 +00:00
parent 0afd6a9313
commit 5a43acff2a
1 changed files with 3 additions and 3 deletions

View File

@ -909,7 +909,7 @@ public class ImapStore extends Store
}
private int getMessageCount(String criteria) throws MessagingException
private int getRemoteMessageCount(String criteria) throws MessagingException
{
checkOpen();
try
@ -938,13 +938,13 @@ public class ImapStore extends Store
@Override
public int getUnreadMessageCount() throws MessagingException
{
return getMessageCount("UNSEEN NOT DELETED");
return getRemoteMessageCount("UNSEEN NOT DELETED");
}
@Override
public int getFlaggedMessageCount() throws MessagingException
{
return getMessageCount("FLAGGED NOT DELETED");
return getRemoteMessageCount("FLAGGED NOT DELETED");
}
protected int getHighestUid()