Don't enter draft folders when navigating to next unread/new/marked
authorColin Leroy <colin@colino.net>
Thu, 15 May 2014 10:01:01 +0000 (12:01 +0200)
committerColin Leroy <colin@colino.net>
Thu, 15 May 2014 10:01:01 +0000 (12:01 +0200)
src/folderview.c

index 457affb..f3df646 100644 (file)
@@ -880,7 +880,7 @@ static GtkCMCTreeNode *folderview_find_next_with_flag(GtkCMCTree *ctree,
 
        for (; node != NULL; node = gtkut_ctree_node_next(ctree, node)) {
                item = gtk_cmctree_node_get_row_data(ctree, node);
-               if (item->stype == F_TRASH)
+               if (item->stype == F_TRASH || item->stype == F_DRAFT)
                        continue;
                switch (flag) {
                case MSG_UNREAD: