From a580c92e17f80b4890055c86e0a293b6c5ca4975 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 11 Sep 2001 00:05:52 +0000 Subject: Handle empty accounts svn path=/trunk/; revision=12756 --- mail/ChangeLog | 5 +++++ mail/mail-config.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'mail') 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 + + * mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount): Add a + none account if the url is empty. + 2001-09-10 Jeffrey Stedfast * 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 */ -- cgit v1.2.3