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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index a406ba1367..7c0b4a4c97 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -1925,6 +1925,11 @@ impl_GNOME_Evolution_MailConfig_addAccount (PortableServer_Servant servant,
MailConfigService *mail_service;
MailConfigIdentity *mail_id;
+ if (mail_config_get_account_by_name (account->name)) {
+ /* FIXME: we need an exception. */
+ return;
+ }
+
mail_account = g_new0 (MailConfigAccount, 1);
mail_account->name = g_strdup (account->name);