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.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 55862acc09..04d59f7f17 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -576,6 +576,15 @@ mail_config_add_account (MailConfigAccount *account)
config->accounts = g_slist_append (config->accounts, account);
}
+const GSList *
+mail_config_remove_account (MailConfigAccount *account)
+{
+ config->accounts = g_slist_remove (config->accounts, account);
+ account_destroy (account);
+
+ return config->accounts;
+}
+
void
mail_config_set_default_account (const MailConfigAccount *account)
{
@@ -637,6 +646,15 @@ mail_config_add_news (MailConfigService *news)
config->news = g_slist_append (config->news, news);
}
+const GSList *
+mail_config_remove_news (MailConfigService *news)
+{
+ config->news = g_slist_remove (config->news, news);
+ service_destroy (news);
+
+ return config->news;
+}
+
GSList *
mail_config_get_sources (void)
{