aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-09-11 08:05:52 +0800
committerIain Holmes <iain@src.gnome.org>2001-09-11 08:05:52 +0800
commita580c92e17f80b4890055c86e0a293b6c5ca4975 (patch)
tree466157b2e2f2f5270aa61f5f054d7f469e36412d
parentbe5f37e097453112e41931e11caa421e41d0104c (diff)
downloadgsoc2013-evolution-a580c92e17f80b4890055c86e0a293b6c5ca4975.tar
gsoc2013-evolution-a580c92e17f80b4890055c86e0a293b6c5ca4975.tar.gz
gsoc2013-evolution-a580c92e17f80b4890055c86e0a293b6c5ca4975.tar.bz2
gsoc2013-evolution-a580c92e17f80b4890055c86e0a293b6c5ca4975.tar.lz
gsoc2013-evolution-a580c92e17f80b4890055c86e0a293b6c5ca4975.tar.xz
gsoc2013-evolution-a580c92e17f80b4890055c86e0a293b6c5ca4975.tar.zst
gsoc2013-evolution-a580c92e17f80b4890055c86e0a293b6c5ca4975.zip
Handle empty accounts
svn path=/trunk/; revision=12756
-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 */