On Sun Oct25'26 03:15:47PM, Mutt Users' Mailing List wrote:
> From: Sirius via Mutt-users <[email protected]>
> Date: Sun, 25 Oct 2026 15:15:47 +0100
> To: Ranjan Maitra <[email protected]>
> Cc: [email protected]
> Reply-To: Sirius <[email protected]>
> Subject: Re: how to mark all unread messages read in mutt?
> 
> On Sun, 2026/10/25 at 08:36:22 -0500, Mutt User List wrote:
> > On Sun Oct25'26 07:33:56AM, Tim Chase wrote:
> > > From: Tim Chase <[email protected]>
> > > Date: Sun, 25 Oct 2026 07:33:56 -0500
> > > To: [email protected]
> > > Subject: Re: how to mark all unread messages read in mutt?
> > > 
> > > On 2026-10-25 08:05, Michael Kjörling wrote:
> > > > On 24 Oct 2026 20:46 -0500, from [email protected] (Tim Chase):
> > 
> > Thank you to Michael and to Tim for both suggestions.
> > 
> > > > >  T~U;Wn
> > 
> > So, not being very familiar with much of mutt, I had some trouble getting 
> > this to work, until I realized that there needs to a bit of a lag between 
> > typing the ; and the W.
> > 
> > So, the sequence is:
> > 
> > T~U -> return -> ; -> Wn 
> > 
> > and this works very well. 
> > 
> > I presume that I can replace the Wn with d in case I want to delete all the 
> > unread messages?
> > 
> > > > >
> > > > >
> > > > >   <tag-pattern>~U<tag-prefix><clear-flag>n
> > > > 
> > > > Wouldn't you need a <enter> before the <tag-prefix> to terminate
> > > > input?
> > 
> > Thank you! The following now works:
> > 
> > macro index <F3> "<tag-pattern>~U<enter><tag-prefix><clear-flag>n" 
> > 
> > However, F3 is a bit too risky in my view. I want to bind it to a Windows 
> > or an Alt key. How do I do that?
> 
> The way I do it is this way:
> 
> macro index <esc>z 
> '<tag-pattern>~N<return><tag-prefix><toggle-new><untag-pattern>.<return>' 
> "Mark all messages read"
> 

Thank you! And what would I do if I wanted Ctrl-Alt-z? So a three-key 
combination, with Ctrl-Alt-z all pressed together to activate the operation?

Many thanks,
Ranjan

Reply via email to