On 29-03-2007 16:03:15 -0700, Brendan Cully wrote: > On Monday, 05 March 2007 at 13:43, Antoine Reilles wrote: > > A patch to add a (change_folder_next) option to mutt was proposed long > > time ago. It allow the change-folder command to start at the folder > > after the current folder. The reason is that it may be annoying > > that the 'c' (change-folder) command always starts from the first > > folder in the mailboxes list. > > I'm not sure whether it's worth it, but I think if we want this, it > might be nicer as a second command than a configuration > variable. Perhaps <next-folder> ? It wouldn't even need to prompt.
I'm using the patch for a while now. It's slightly nicer than normal (it avoids dangling back and forth), but if you want to make another command for it, I'd suggest to just implement a scheme for that command as follows. Make the next suggested folder be the folder that got the next new email in time. Thus, if mail arrives in folder C, A and D (in that order), then regardless whether new mail arrives in any of that folders afterwards, mutt suggests you to cycle through it in order C, A, D. This is what I usually want, but requires state to be kept. I assume that the current way of doing it is just looking for folders with a flag of having new mail or not, and the change_folder_next patch just changes the starting point of that search, which to me indeed is best done with an option. My 0.02 e :)