On Sun, Sep 25, 2011 at 12:03:48PM +0800, X.Y. wrote: > On Sat, Sep 24, 2011 at 02:41:44PM +0200, Toby Cubitt wrote: > > On Tue, Sep 13, 2011 at 04:59:11PM +0200, Toby Cubitt wrote: > > > I use maildir for all my mailboxes, except the system mailbox in > > > /var/spool/mail/<user> which receives mail from local processes such as > > > cron, and which is in mbox format. > > > > > > Mutt seems to detect new mail in the system mbox fine (at least, the > > > mailbox is marked as having new mail in the sidebar - I'm using the > > > sidebar patch.) However, for this solitary mbox mailbox, the > > > <next-unread-mailbox> command doesn't work. It works fine for all the > > > other maildir mailboxes. > > > > > > I've tried both with and without the check_mbox_size option enabled, to > > > no effect. I'm running Linux with /var on a separate filesystem, and /var > > > is mounted with the relatime option (which, as I understand it, should > > > mean that check_mbox_size is unnecessary). > > > > > > Does anyone have any idea why <next-unread-mailbox> doesn't work for this > > > one particular mailbox, even though mutt does seem to be detecting new > > > mail to it, and the command works for all other mailboxes? > > > > No ideas on this? Is anyone else experiencing similar problems? Is there > > any additional information I could give that would be helpful? > > I don't understand what are you doing? > If you want to switch mailbox among all of mailboxes, you can write follow > lines in .muttrc: > bind index \CN next-unread-mailbox > bind pager \CN next-unread-mailbox
Sure, I have already configured index and pager keybindings for next-unread-mailbox in my .muttrc: bind index,pager <esc><tab> next-unread-mailbox I also have various mailboxes configured in .muttrc: # default incoming mail location set spoolfile="~/.offlineimap/MailHost/INBOX/" # maildir mailboxes mailboxes ~/.offlineimap/MailHost/INBOX/ mailboxes ~/.offlineimap/MailHost/INBOX/Sent/ mailboxes ~/.offlineimap/MailHost/INBOX/Drafts/ ... # mbox mailboxes mailboxes /var/mail/tsc25 When I hit <alt><tab> (or <esc><tab>), which is bound to next-unread-mailbox as above, mutt obligingly switches to the next mailbox that contains unread mail, *except* that it *never* switches to the /var/mail/tsc25 mailbox, even when that mailbox definitely contains new, unread mail. The only obvious difference I can see between the mailboxes for which next-unread-mailbox works, and the one exception for which it doesn't work, is the latter is in mbox format. Whereas all the others are in maildir format. I don't know if the problem I'm experiencing is in any way related to that, or if this is a red herring. My point about the sidebar was just to point out that mutt does seem to detect new mail correctly in /var/mail/tsc25. So it doesn't look like the next-unread-mailbox problem is a new mail detection issue (which mbox mailboxes are prone to). Thanks for your help, Toby -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain email: [email protected] web: www.dr-qubit.org
