aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-10-11 06:52:10 +0800
committerDan Winship <danw@src.gnome.org>2001-10-11 06:52:10 +0800
commitdfbc58d0466a24dd08c5f20ac4199fe8bd353e85 (patch)
tree93f8fdb26247b117c59531b332d0b9bb95f8e47c /mail/mail-config.c
parentf3e2d67d4dc9211f7036618e0f272d9ef1f86915 (diff)
downloadgsoc2013-evolution-dfbc58d0466a24dd08c5f20ac4199fe8bd353e85.tar.gz
gsoc2013-evolution-dfbc58d0466a24dd08c5f20ac4199fe8bd353e85.tar.zst
gsoc2013-evolution-dfbc58d0466a24dd08c5f20ac4199fe8bd353e85.zip
Fix up the logic here.
* mail-config.c (new_source_created): Fix up the logic here. svn path=/trunk/; revision=13576
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index aa94a2c8e3..5ed4886163 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -1609,7 +1609,8 @@ new_source_created (MailConfigAccount *account)
}
/* not a storage, don't bother. */
- if (!(prov->flags & CAMEL_PROVIDER_IS_STORAGE))
+ if (!(prov->flags & CAMEL_PROVIDER_IS_STORAGE) ||
+ (prov->flags & CAMEL_PROVIDER_IS_EXTERNAL))
return;
inbox = mail_tool_get_inbox (account->source->url, &ex);
@@ -1639,10 +1640,8 @@ new_source_created (MailConfigAccount *account)
*/
}
- if (!(prov->flags & CAMEL_PROVIDER_IS_EXTERNAL)) {
- /* add the storage to the folder tree */
- add_new_storage (account->source->url, account->name);
- }
+ /* add the storage to the folder tree */
+ add_new_storage (account->source->url, account->name);
if (inbox)
camel_object_unref (CAMEL_OBJECT (inbox));