diff options
author | Milan Crha <mcrha@redhat.com> | 2009-06-24 18:59:40 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-06-24 18:59:40 +0800 |
commit | 014aac87ac38f18527f6753f2009f4d0c78d1015 (patch) | |
tree | f90ab4eb2a7f798b5cb10f86ee9cd98155ff2191 /mail/mail-send-recv.c | |
parent | ae925791901540bf485ddc3e7e613768e93ebebd (diff) | |
download | gsoc2013-evolution-014aac87ac38f18527f6753f2009f4d0c78d1015.tar.gz gsoc2013-evolution-014aac87ac38f18527f6753f2009f4d0c78d1015.tar.zst gsoc2013-evolution-014aac87ac38f18527f6753f2009f4d0c78d1015.zip |
Bug #568302 - Skip "noselect=yes" folders on Send/Receive
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index f20d71f84e..8411290222 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -782,8 +782,15 @@ get_folders (CamelStore *store, GPtrArray *folders, CamelFolderInfo *info) camel_exception_init (&ex); while (info) { - if (camel_store_can_refresh_folder (store, info, &ex)) - g_ptr_array_add (folders, g_strdup (info->uri)); + if (camel_store_can_refresh_folder (store, info, &ex)) { + CamelURL *url = camel_url_new (info->uri, NULL); + + if (url && (!camel_url_get_param (url, "noselect") || !g_str_equal (camel_url_get_param (url, "noselect"), "yes"))) + g_ptr_array_add (folders, g_strdup (info->uri)); + + if (url) + camel_url_free (url); + } camel_exception_clear (&ex); get_folders (store, folders, info->child); |