diff options
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r-- | mail/em-folder-tree-model.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index f1f69a7276..f29a5fe5d4 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -269,7 +269,9 @@ account_added_cb (EAccountList *accounts, CAMEL_SESSION (session), uri, CAMEL_PROVIDER_STORE, NULL); if (store != NULL) { - e_mail_store_add (session, store, account->name); + if ((CAMEL_SERVICE (store)->provider->flags & CAMEL_PROVIDER_IS_STORAGE) != 0) + e_mail_store_add (session, store, account->name); + g_object_unref (store); } } |