aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c8
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 */