aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-config.c9
2 files changed, 8 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index abbe894f2f..782da07741 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-10 Dan Winship <danw@ximian.com>
+
+ * mail-config.c (new_source_created): Fix up the logic here.
+
2001-10-10 Larry Ewing <lewing@ximian.com>
* mail-callbacks.c (mail_generate_reply): use new function to copy
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));