[evolution-data-server] [IMAPx] Try to guess also Templates and Archive folders



commit caf29d69268f734785977cac49eae2d59eeded24
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jan 29 13:54:21 2016 +0100

    [IMAPx] Try to guess also Templates and Archive folders

 camel/providers/imapx/camel-imapx-store.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-store.c b/camel/providers/imapx/camel-imapx-store.c
index efe5a42..5ea55d6 100644
--- a/camel/providers/imapx/camel-imapx-store.c
+++ b/camel/providers/imapx/camel-imapx-store.c
@@ -2375,6 +2375,12 @@ imapx_initial_setup_sync (CamelStore *store,
                NC_("IMAPDefaults", "Drafts"),
                NC_("IMAPDefaults", "Draft")
        };
+       const gchar *templates_names[] = {
+               NC_("IMAPDefaults", "Templates")
+       };
+       const gchar *archive_names[] = {
+               NC_("IMAPDefaults", "Archive")
+       };
        const gchar *sent_names[] = {
                NC_("IMAPDefaults", "[Gmail]/Sent Mail"),
                NC_("IMAPDefaults", "Sent"),
@@ -2417,6 +2423,14 @@ imapx_initial_setup_sync (CamelStore *store,
                draft_names, G_N_ELEMENTS (draft_names));
 
        imapx_check_initial_setup_group (finfo, save_setup,
+               CAMEL_STORE_SETUP_TEMPLATES_FOLDER, NULL, NULL,
+               templates_names, G_N_ELEMENTS (templates_names));
+
+       imapx_check_initial_setup_group (finfo, save_setup,
+               CAMEL_STORE_SETUP_ARCHIVE_FOLDER, NULL, NULL,
+               archive_names, G_N_ELEMENTS (archive_names));
+
+       imapx_check_initial_setup_group (finfo, save_setup,
                CAMEL_STORE_SETUP_SENT_FOLDER, NULL, NULL,
                sent_names, G_N_ELEMENTS (sent_names));
 


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