<<< Date Index >>>     <<< Thread Index >>>

[patch] improved user-selection of folders with new mail



hello

When changing folder the input of <space> jump to the next folder
with new messages, but now the selection always beginns with the
first folder of the list.

If we have a couple of folders with new messages, but we are only
interested in some of them _now_, without knowing how much
folders contain new messages. The others we want to look later -
may be not so often. 

Suppose we have 12 folders with new mail, but we only want to
work with folder 5, 7 and 9 now. When ready with folder 5 we have
to walk from folder 1 to 7 to get the next folder of interest and
then from folder 1 to 9 to select folder 9.

This minipatch causes that the change-folder cycle continues with
the next folder after the current folder that has new messages.
When we are ready with folder 5 of the above example we have only
walk from folder 6 to 7 and afterwards from folder 8 to 9.


yours
gerhard



-- 
 .''`.
: :'  :    gerhard oettl
`. `'`         on
  `-    Debian/Gnu Linux
diff -ur -X diff.ignore cvs/mutt/curs_main.c dev/curs_main.c
--- cvs/mutt/curs_main.c        2003-09-03 19:09:09.000000000 +0200
+++ dev/curs_main.c     2005-04-21 17:16:46.498617928 +0200
@@ -1047,7 +1047,12 @@
         else
           cp = _("Open mailbox");
 
-       buf[0] = '\0';
+       if (Context)
+       {
+         strncpy(buf, Context->path, sizeof (buf));
+       }
+       else
+         buf[0] = '\0';
        mutt_buffy (buf, sizeof (buf));
 
        if (mutt_enter_fname (cp, buf, sizeof (buf), &menu->redraw, 1) == -1)

Attachment: pgptZzoo93kt6.pgp
Description: PGP signature