diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-09-11 08:05:52 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-09-11 08:05:52 +0800 |
commit | a580c92e17f80b4890055c86e0a293b6c5ca4975 (patch) | |
tree | 466157b2e2f2f5270aa61f5f054d7f469e36412d /mail/mail-config.c | |
parent | be5f37e097453112e41931e11caa421e41d0104c (diff) | |
download | gsoc2013-evolution-a580c92e17f80b4890055c86e0a293b6c5ca4975.tar.gz gsoc2013-evolution-a580c92e17f80b4890055c86e0a293b6c5ca4975.tar.zst gsoc2013-evolution-a580c92e17f80b4890055c86e0a293b6c5ca4975.zip |
Handle empty accounts
svn path=/trunk/; revision=12756
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 */ |