aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-store.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-10 18:40:43 +0800
committerMilan Crha <mcrha@redhat.com>2010-11-10 18:40:43 +0800
commit1d8d943f67a4e52d8c574e2598f0f2d7e03e488d (patch)
treee1bbbcc8cdc5f765693b0125f8ed651996ce33ed /mail/e-mail-store.c
parent80d11c3d35bfb9fa716fa08ff0259098066f225e (diff)
downloadgsoc2013-evolution-1d8d943f67a4e52d8c574e2598f0f2d7e03e488d.tar.gz
gsoc2013-evolution-1d8d943f67a4e52d8c574e2598f0f2d7e03e488d.tar.zst
gsoc2013-evolution-1d8d943f67a4e52d8c574e2598f0f2d7e03e488d.zip
Bug #632293 - Do not add POP accounts into folder tree
Diffstat (limited to 'mail/e-mail-store.c')
-rw-r--r--mail/e-mail-store.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/e-mail-store.c b/mail/e-mail-store.c
index fdba2cfbd6..44c5c7e3a8 100644
--- a/mail/e-mail-store.c
+++ b/mail/e-mail-store.c
@@ -171,6 +171,9 @@ mail_store_add (EMailSession *session,
StoreInfo *store_info;
g_return_if_fail (store_table != NULL);
+ g_return_if_fail (store != NULL);
+ g_return_if_fail (CAMEL_IS_STORE (store));
+ g_return_if_fail ((CAMEL_SERVICE (store)->provider->flags & CAMEL_PROVIDER_IS_STORAGE) != 0);
default_model = em_folder_tree_model_get_default ();
folder_cache = e_mail_session_get_folder_cache (session);