From f21fc37e3c2025f2a6b4ed3a24123d2a7fd5eed4 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 21 Sep 2001 02:21:12 +0000 Subject: Only add the account if it doesn't already exist in the config db. 2001-09-20 Jeffrey Stedfast * mail-account-gui.c (mail_account_gui_save): Only add the account if it doesn't already exist in the config db. * mail-config.c (mail_config_find_account): New convenience function. svn path=/trunk/; revision=13039 --- mail/mail-config.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/mail-config.c') diff --git a/mail/mail-config.c b/mail/mail-config.c index 709bde47c3..a518144a47 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -1369,6 +1369,12 @@ mail_config_set_default_charset (const char *charset) } +gboolean +mail_config_find_account (const MailConfigAccount *account) +{ + return g_slist_find (config->accounts, (gpointer) account) != NULL; +} + const MailConfigAccount * mail_config_get_default_account (void) { -- cgit