aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-07-01 22:47:10 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-07-01 22:47:10 +0800
commit1351c8e4fb443a9705bb1225c3c574c05a36f8ca (patch)
treee049bafefac361ae66dfa43abdb956f1f3a730e0 /mail/mail-send-recv.c
parent624f48121f523101fe26c3d3a8b51a4eeda90990 (diff)
parent42e75c9162402078ac629740821c3533925ee342 (diff)
downloadgsoc2013-evolution-1351c8e4fb443a9705bb1225c3c574c05a36f8ca.tar.gz
gsoc2013-evolution-1351c8e4fb443a9705bb1225c3c574c05a36f8ca.tar.zst
gsoc2013-evolution-1351c8e4fb443a9705bb1225c3c574c05a36f8ca.zip
Merge branch 'master' into kill-bonobo
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 9cc75057fa..323d21f4d7 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -797,8 +797,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);