From: Milan Crha Date: Tue, 11 Oct 2011 08:02:33 +0000 (+0200) Subject: Bug #660829 - Allow 'Mark as read' in right click menu on spam folder X-Git-Tag: upstream/3.7.4~1502 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d24415554663deea972af8eb53a2065440403cbb;p=platform%2Fupstream%2Fevolution-data-server.git Bug #660829 - Allow 'Mark as read' in right click menu on spam folder --- diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c index 3a5a2b0..4bd0cba 100644 --- a/camel/providers/local/camel-maildir-store.c +++ b/camel/providers/local/camel-maildir-store.c @@ -628,7 +628,9 @@ maildir_store_get_folder_info_sync (CamelStore *store, const gchar *name = strrchr (top, '/'); fi = scan_fi (store, flags, url, top, name ? name + 1 : top, cancellable); - if (scan_dirs (store, flags, &fi, url, cancellable, error) == -1) + if (g_strcmp0 (fi->full_name, CAMEL_VTRASH_NAME) != 0 && + g_strcmp0 (fi->full_name, CAMEL_VJUNK_NAME) != 0 && + scan_dirs (store, flags, &fi, url, cancellable, error) == -1) goto fail; }