Fixes Issue 1182

Never set up K9mail-errors or the Outbox for pushing
This commit is contained in:
Daniel Applebaum 2010-02-06 05:35:15 +00:00
parent 5043c0580f
commit 9ec77a9f9a
1 changed files with 10 additions and 1 deletions

View File

@ -2966,7 +2966,7 @@ public class MessagingController implements Runnable
catch (MessagingException me)
{
if (K9.DEBUG)
Log.v(K9.LOG_TAG, "", me);
Log.v(K9.LOG_TAG, "Exception loading attachment", me);
for (MessagingListener l : getListeners())
{
@ -4392,6 +4392,15 @@ public class MessagingController implements Runnable
Store localStore = Store.getInstance(account.getLocalStoreUri(), mApplication);
for (final Folder folder : localStore.getPersonalNamespaces())
{
if (folder.getName().equals(account.getErrorFolderName())
|| folder.getName().equals(account.getOutboxFolderName()))
{
if (K9.DEBUG)
Log.v(K9.LOG_TAG, "Not pushing folder " + folder.getName() +
" which should never be pushed");
continue;
}
folder.open(Folder.OpenMode.READ_WRITE);
folder.refresh(prefs);