diff options
author | Shreyas Srinivasan <sshreyas@novell.com> | 2005-07-10 18:03:56 +0800 |
---|---|---|
committer | Shreyas Srinivasan <shres@src.gnome.org> | 2005-07-10 18:03:56 +0800 |
commit | 7d9c68cbe5307c661480506c53c6e0c4db56d98e (patch) | |
tree | 81b08b8fe0155bbef550a1ac53b4ad57035410f7 /mail/mail-config.c | |
parent | 38035659d1d57b512b28b19dc4436609de3d52ca (diff) | |
download | gsoc2013-evolution-7d9c68cbe5307c661480506c53c6e0c4db56d98e.tar.gz gsoc2013-evolution-7d9c68cbe5307c661480506c53c6e0c4db56d98e.tar.zst gsoc2013-evolution-7d9c68cbe5307c661480506c53c6e0c4db56d98e.zip |
Add new functions to remove proxy accounts and proxies created by the
2005-07-10 Shreyas Srinivasan <sshreyas@novell.com>
* 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
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 18 |
1 files changed, 18 insertions, 0 deletions
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) { |