aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-config.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index bd0be303da..9a0818edbf 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-10 Iain Holmes <iain@ximian.com>
+
+ * mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount): Add a
+ none account if the url is empty.
+
2001-09-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): Don't use
diff --git a/mail/mail-config.c b/mail/mail-config.c
index e539ba4078..45b7496458 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -1991,13 +1991,17 @@ impl_GNOME_Evolution_MailConfig_addAccount (PortableServer_Servant servant,
/* Copy source */
source = account->source;
mail_service = g_new0 (MailConfigService, 1);
- mail_service->url = g_strdup (source.url);
+ if (source.url == NULL || strcmp (source.url, "none://") == 0) {
+ mail_service->url = NULL;
+ } else {
+ mail_service->url = g_strdup (source.url);
+ }
mail_service->keep_on_server = source.keep_on_server;
mail_service->auto_check = source.auto_check;
mail_service->auto_check_time = source.auto_check_time;
mail_service->save_passwd = source.save_passwd;
mail_service->enabled = source.enabled;
-
+
mail_account->source = mail_service;
/* Copy transport */