From 7d9c68cbe5307c661480506c53c6e0c4db56d98e Mon Sep 17 00:00:00 2001 From: Shreyas Srinivasan Date: Sun, 10 Jul 2005 10:03:56 +0000 Subject: Add new functions to remove proxy accounts and proxies created by the 2005-07-10 Shreyas Srinivasan * mail-config.[ch]: Add new functions to remove proxy accounts and proxies created by the account. * mail-compnent.c: Remove proxy accounts at startup * mail.error.xml: Add warnings for proxy disable and removal of a proxy when its parents are removed. * em-account-prefs.c: Add checks not to display proxies and handling of parent removal/ disabling. svn path=/trunk/; revision=29698 --- mail/mail-config.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'mail/mail-config.c') diff --git a/mail/mail-config.c b/mail/mail-config.c index 72fa5c6695..520aec3091 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -671,6 +671,24 @@ mail_config_get_account_by_transport_url (const char *transport_url) return NULL; } +int +mail_config_has_proxies (EAccount *account) +{ + return e_account_list_account_has_proxies (config->accounts, account); +} + +void +mail_config_remove_account_proxies (EAccount *account) +{ + e_account_list_remove_account_proxies (config->accounts, account); +} + +void +mail_config_prune_proxies (void) +{ + e_account_list_prune_proxies (config->accounts); +} + EAccountList * mail_config_get_accounts (void) { -- cgit v1.2.3