[evolution-data-server] Bug #660829 - Allow 'Mark as read' in right click menu on spam folder



commit d24415554663deea972af8eb53a2065440403cbb
Author: Milan Crha <mcrha redhat com>
Date:   Tue Oct 11 10:02:33 2011 +0200

    Bug #660829 - Allow 'Mark as read' in right click menu on spam folder

 camel/providers/local/camel-maildir-store.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
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;
 	}
 



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