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" That way I can hit 'alt-z' in any mailbox and instantly mark everything read, and afterwards, nothing is still tagged. Mapped keys are not always instantly trivial to make out. '<esc>z' actually translate to Alt-z on Linux, so that is likely the bit of info you are missing. > I tried <A-r> but it did not work with using <Alt-r> > > Many thanks again, and best wishes, > Ranjan -- Apologies for existing, /Sirius
signature.asc
Description: PGP signature
