Bug #660829 - Allow 'Mark as read' in right click menu on spam folder
authorMilan Crha <mcrha@redhat.com>
Tue, 11 Oct 2011 08:02:33 +0000 (10:02 +0200)
committerMilan Crha <mcrha@redhat.com>
Tue, 11 Oct 2011 08:02:33 +0000 (10:02 +0200)
camel/providers/local/camel-maildir-store.c

index 3a5a2b0..4bd0cba 100644 (file)
@@ -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;
        }