aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSivaiah Nallagatla <snallagatla@novell.com>2004-08-14 00:35:25 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2004-08-14 00:35:25 +0800
commit37646eb1f9219f1e0c4bc9777eeec1b73ed468f7 (patch)
tree6b0d3eb8036c64a001a78452f73f2d531d7d9959
parent96bec73826737a057a75769c577435409d3f7902 (diff)
downloadgsoc2013-evolution-37646eb1f9219f1e0c4bc9777eeec1b73ed468f7.tar.gz
gsoc2013-evolution-37646eb1f9219f1e0c4bc9777eeec1b73ed468f7.tar.zst
gsoc2013-evolution-37646eb1f9219f1e0c4bc9777eeec1b73ed468f7.zip
remove the cal/taksks sources when account is disbaled. Also do not try to
2004-08-13 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (account_changed): remove the cal/taksks sources when account is disbaled. Also do not try to to create sources when a disabled account is changed to Novell Groupwise (camel_gw_listener_construct) : do not add the disbaled accounts to exitsting groupwise accounts list svn path=/trunk/; revision=26920
-rw-r--r--camel/ChangeLog9
-rw-r--r--camel/providers/groupwise/camel-gw-listener.c16
-rw-r--r--plugins/groupwise-account-setup/camel-gw-listener.c16
3 files changed, 35 insertions, 6 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 6f7d191ee3..b3c11be62e 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,14 @@
2004-08-13 Sivaiah Nallagatla <snallagatla@novell.com>
+ * providers/groupwise/camel-gw-listener.c (account_changed):
+ remove the cal/taksks sources when account is disbaled. Also
+ do not try to to create sources when a disabled account is changed to
+ Novell Groupwise
+ (camel_gw_listener_construct) : do not add the disbaled
+ accounts to exitsting groupwise accounts list
+
+2004-08-13 Sivaiah Nallagatla <snallagatla@novell.com>
+
* providers/groupwise/camel-groupwise-provider.c : update
ssl setting label and title of the soap settings section
Fixes #62747
diff --git a/camel/providers/groupwise/camel-gw-listener.c b/camel/providers/groupwise/camel-gw-listener.c
index 927c7410f1..b2b7556e07 100644
--- a/camel/providers/groupwise/camel-gw-listener.c
+++ b/camel/providers/groupwise/camel-gw-listener.c
@@ -381,7 +381,7 @@ get_addressbook_names_from_server (char *source_url)
char *uri;
const char *use_ssl;
const char *poa_address;
- guint32 flags = E_PASSWORDS_REMEMBER_FOREVER|E_PASSWORDS_SECRET;
+ guint32 flags = E_PASSWORDS_REMEMBER_FOREVER;
url = camel_url_new (source_url, NULL);
if (url == NULL) {
@@ -395,6 +395,8 @@ get_addressbook_names_from_server (char *source_url)
if (!soap_port || strlen (soap_port) == 0)
soap_port = "7181";
use_ssl = camel_url_get_param (url, "soap_ssl");
+ if(use_ssl)
+ use_ssl = "always";
key = g_strdup_printf ("groupwise://%s@%s/", url->user, poa_address);
if (use_ssl)
uri = g_strdup_printf ("https://%s:%s/soap", poa_address, soap_port);
@@ -653,7 +655,7 @@ account_added (EAccountList *account_listener, EAccount *account)
info->name = g_strdup (account->name);
info->source_url = g_strdup (account->source->url);
status = add_addressbook_sources (account);
- if (status)
+ if (status)
add_calendar_tasks_sources (info);
groupwise_accounts = g_list_append (groupwise_accounts, info);
@@ -700,6 +702,10 @@ account_changed (EAccountList *account_listener, EAccount *account)
existing_account_info = lookup_account_info (account->uid);
if (existing_account_info == NULL && is_gw_account) {
+
+ if (!account->enabled)
+ return;
+
/* some account of other type is changed to Groupwise */
account_added (account_listener, account);
@@ -716,6 +722,10 @@ account_changed (EAccountList *account_listener, EAccount *account)
} else if ( existing_account_info != NULL && is_gw_account ) {
+ if (!account->enabled) {
+ account_removed (account_listener, account);
+ return;
+ }
/* some info of groupwise account is changed . update the sources with new info if required */
url = camel_url_new (existing_account_info->source_url, NULL);
poa_address = camel_url_get_param (url, "poa");
@@ -773,7 +783,7 @@ camel_gw_listener_construct (CamelGwListener *config_listener)
for ( iter = e_list_get_iterator (E_LIST ( config_listener->priv->account_list) ) ; e_iterator_is_valid (iter); e_iterator_next (iter) ) {
account = E_ACCOUNT (e_iterator_get (iter));
- if ( is_groupwise_account (account)) {
+ if ( is_groupwise_account (account) && account->enabled) {
info = g_new0 (GwAccountInfo, 1);
info->uid = g_strdup (account->uid);
diff --git a/plugins/groupwise-account-setup/camel-gw-listener.c b/plugins/groupwise-account-setup/camel-gw-listener.c
index 927c7410f1..b2b7556e07 100644
--- a/plugins/groupwise-account-setup/camel-gw-listener.c
+++ b/plugins/groupwise-account-setup/camel-gw-listener.c
@@ -381,7 +381,7 @@ get_addressbook_names_from_server (char *source_url)
char *uri;
const char *use_ssl;
const char *poa_address;
- guint32 flags = E_PASSWORDS_REMEMBER_FOREVER|E_PASSWORDS_SECRET;
+ guint32 flags = E_PASSWORDS_REMEMBER_FOREVER;
url = camel_url_new (source_url, NULL);
if (url == NULL) {
@@ -395,6 +395,8 @@ get_addressbook_names_from_server (char *source_url)
if (!soap_port || strlen (soap_port) == 0)
soap_port = "7181";
use_ssl = camel_url_get_param (url, "soap_ssl");
+ if(use_ssl)
+ use_ssl = "always";
key = g_strdup_printf ("groupwise://%s@%s/", url->user, poa_address);
if (use_ssl)
uri = g_strdup_printf ("https://%s:%s/soap", poa_address, soap_port);
@@ -653,7 +655,7 @@ account_added (EAccountList *account_listener, EAccount *account)
info->name = g_strdup (account->name);
info->source_url = g_strdup (account->source->url);
status = add_addressbook_sources (account);
- if (status)
+ if (status)
add_calendar_tasks_sources (info);
groupwise_accounts = g_list_append (groupwise_accounts, info);
@@ -700,6 +702,10 @@ account_changed (EAccountList *account_listener, EAccount *account)
existing_account_info = lookup_account_info (account->uid);
if (existing_account_info == NULL && is_gw_account) {
+
+ if (!account->enabled)
+ return;
+
/* some account of other type is changed to Groupwise */
account_added (account_listener, account);
@@ -716,6 +722,10 @@ account_changed (EAccountList *account_listener, EAccount *account)
} else if ( existing_account_info != NULL && is_gw_account ) {
+ if (!account->enabled) {
+ account_removed (account_listener, account);
+ return;
+ }
/* some info of groupwise account is changed . update the sources with new info if required */
url = camel_url_new (existing_account_info->source_url, NULL);
poa_address = camel_url_get_param (url, "poa");
@@ -773,7 +783,7 @@ camel_gw_listener_construct (CamelGwListener *config_listener)
for ( iter = e_list_get_iterator (E_LIST ( config_listener->priv->account_list) ) ; e_iterator_is_valid (iter); e_iterator_next (iter) ) {
account = E_ACCOUNT (e_iterator_get (iter));
- if ( is_groupwise_account (account)) {
+ if ( is_groupwise_account (account) && account->enabled) {
info = g_new0 (GwAccountInfo, 1);
info->uid = g_strdup (account->uid);