On 2026-10-28 07:17, Mutt list wrote:
> Btw, I wanted to also have a macro to delete all unread emails (such
> as from a high-volume mailing list that I have not seen for a few
> days). I guess I should change the "clear-flag" above.
>
> Is this the correct macro to tie alt-d to this operation?
>
> macro index <esc>d "<tag-pattern>~U<enter><tag-prefix><d>n"

In your original case, you're only marking unread things as read, so if
you have additional messages tagged before executing it, it's a null
operation (you mark an unread message as unread).

In the deletion case, if you have other messages tagged before running
it, you'll delete those too.  So I'd be more careful with this one.

I think you want <delete-message> instead of <d>, and I'm not sure
what the trailing "n" is supposed to be doing (do you have some
delete-confirmation in place?)

But otherwise, it looks sane.

-tkc
-- 





Reply via email to