Re: Auto jump to next mailbox from pager

Will Yardley <[email protected]>
Newsgroups gmane.mail.mutt.user
Message-ID <[email protected]>
On Mon, Dec 30, 2024 at 07:17:13PM -0800, [email protected] wrote:
> On Mon, Dec 30, 2024 at 11:35:42PM +0000, Christian Ebert wrote:
> 
> > > is there a way to make the command which moves to the next new or
> > > unread message in the pager (bound to Tab key in the pager keymap)
> > > go to the next mailbox with new messages (or unread, but that's
> > > not too important) when there are no more in the current mailbox?
> 
> > Not exactly what you want, but did you try the next-unread-mailbox
> > function?
> 
> Hmmm. I knew there was *some* command like that, I did not remember
> it or how to find it this time. Thank you.
> 
> However, it is listed as an available (not actual) binding in index
> mode. Would it work to bind it in pager mode?
> 
> As I wrote in the other subthread: the whole point of this question is
> that I want to avoid dropping into index mode when I run out of new
> and / or unread messages in the current mailbox, and jump straight to
> reading the first interesting message in the next mailbox that
> contains one.

I don't know if it helps you, but I use '<change-folder>\r', which can
be bound as a macro like so:

.mutt/options:macro pager g "<change-folder>\r"
.mutt/options:macro index , "<change-folder>?<tab>"
.mutt/options:macro index g "<change-folder>\r"

For me, that will typically let me cycle through to the next mailbox
defined in $mailboxes that has new mail, in the order they're defined
there.

You can also see the value of $change_folder_next.

/w
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.