* Chris Green <c...@isbd.net> [2012-12-22 17:15:01 +0000]: > On Sat, Dec 22, 2012 at 10:08:25AM -0500, Patrick Shanahan wrote: > > * Chris Bannister <cbannis...@slingshot.co.nz> [12-22-12 09:58]: > > > On Sat, Dec 22, 2012 at 01:47:24PM +0000, Chris Green wrote: > > > > > > > > I have added:- > > > > bind index n next-unread-mailbox > > > > > > > > ... and now I can find new mail in all my (mbox) mailboxes without any > > > > stupid requirements for setting access times or whatever to the files. > > > > I always thought it should be simple and it is! > > > > [...] > > > > > > It is somewhat slower than 'c' but not really significantly so where > > > > all my mail is in local mbox files. > > > > > > If it is slower, then that might be a good reason why it is not the > > > default. In all honestly though, I think people may complain if it was > > > made the default, simply because the majority of people are only > > > interested in reading new mail. They are probably aware they have old > > > unread mail lying around but don't want to be consistently reminded all > > > the time. > > > > And, "n" is *normally*: > > Table 2.7. Most common pager keys > > Key Description > > <Return> go down one line > > <Space> display the next page (or next message if at the end > > of a message) > > - go back to the previous page > > /-->>>> n search for next match > > S skip beyond quoted text > > > Yes, I know I have hijacked 'n', I might change it but that doesn't > affect the argument about whether using next-unread-mailbox is better > than change-folder for seeing new mail. > > -- > Chris Green
I have bound <ESC><ESC> to the next-unread-mailbox function. It works well for me and is quite useful. bind index \e\e next-unread-mailbox Also have unset mark_old in my muttrc file. I've completely overridden the default keybindings and invoke mutt using a wrapper script with the -n and -F options and source a file where all my functions are bound to the keys I like. Once I've read the mailbox (mbox format) it's considered read; whether or not there remains unread mail in the file until more mail is sorted into it by procmail - then it becomes an "unread mailbox" again. Jamie.