1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Unify our "guard" against syncing the outbox or errors folder

This commit is contained in:
Jesse Vincent 2009-12-27 16:52:06 +00:00
parent e2f84c4fa8
commit 854da2664c

View File

@ -716,13 +716,9 @@ public class MessagingController implements Runnable
public void synchronizeMailboxSynchronous(final Account account, final String folder, final MessagingListener listener)
{
/*
* We don't ever sync the Outbox.
* We don't ever sync the Outbox or errors folder
*/
if (folder.equals(account.getOutboxFolderName()))
{
return;
}
if (account.getErrorFolderName().equals(folder))
if (folder.equals(account.getOutboxFolderName()) || folder.equals(account.getErrorFolderName()))
{
return;
}