[evolution-mapi] eds-I#54 - Enable 'Listen for server change notifications' by default



commit a0dbbc03c6422d40e8ac47d6ca463a351b8df00c
Author: Milan Crha <mcrha redhat com>
Date:   Mon Nov 12 20:45:46 2018 +0100

    eds-I#54 - Enable 'Listen for server change notifications' by default
    
    Also rename the option to the same text used by other providers and
    move it to the section where others have it.
    
    Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/54

 src/camel/camel-mapi-provider.c           | 4 ++--
 src/libexchangemapi/camel-mapi-settings.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/camel/camel-mapi-provider.c b/src/camel/camel-mapi-provider.c
index 4f77191..1a5f2b5 100644
--- a/src/camel/camel-mapi-provider.c
+++ b/src/camel/camel-mapi-provider.c
@@ -43,6 +43,8 @@ static CamelProviderConfEntry mapi_conf_entries[] = {
          N_("Checking for new mail") },
        { CAMEL_PROVIDER_CONF_CHECKBOX, "check-all", NULL,
          N_("C_heck for new messages in all folders"), "1" },
+       { CAMEL_PROVIDER_CONF_CHECKBOX, "listen-notifications", NULL,
+         N_("Lis_ten for server change notifications"), "1" },
        { CAMEL_PROVIDER_CONF_SECTION_END },
 
        { CAMEL_PROVIDER_CONF_SECTION_START, "generals", NULL,
@@ -54,8 +56,6 @@ static CamelProviderConfEntry mapi_conf_entries[] = {
          N_("Check new messages for _Junk contents"), "0" },
        { CAMEL_PROVIDER_CONF_CHECKBOX, "filter-junk-inbox", "filter-junk",
          N_("Only check for Junk messag_es in the Inbox folder"), "0" },
-       { CAMEL_PROVIDER_CONF_CHECKBOX, "listen-notifications", NULL,
-         N_("Lis_ten for server notifications"), "0" },
        { CAMEL_PROVIDER_CONF_CHECKBOX, "stay-synchronized", NULL,
          N_("Synchroni_ze remote mail locally in all folders"), "0" },
        { CAMEL_PROVIDER_CONF_PLACEHOLDER, "mapi-limit-by-age-placeholder", NULL },
diff --git a/src/libexchangemapi/camel-mapi-settings.c b/src/libexchangemapi/camel-mapi-settings.c
index 6acc736..09eae37 100644
--- a/src/libexchangemapi/camel-mapi-settings.c
+++ b/src/libexchangemapi/camel-mapi-settings.c
@@ -390,7 +390,7 @@ camel_mapi_settings_class_init (CamelMapiSettingsClass *class)
                        "listen-notifications",
                        "Listen Notifications",
                        "Whether to listen for server notifications",
-                       FALSE,
+                       TRUE,
                        G_PARAM_READWRITE |
                        G_PARAM_CONSTRUCT |
                        G_PARAM_STATIC_STRINGS));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]