Hello, I wrote a macro to move certain e-mails into a corresponding folder. For this, I first tag all matching messages using a limit and then try to move them to a different folder. The relevant snippets from my .muttrc are:
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox" macro index ${my_Leader}cc 'T~N !~p !~P !~smandatory<enter>;M<Tab>/Carbon Copies<enter><enter>' "Move to Carbon Copies" Now, more often than not the limit pattern does not match any message. Thus, no message gets tagged. Subsequently the macro moves the message that is currently selected. Is there a way to abort the macro if the pattern does not match anything? It is quite annoying to tidy up after the macro every now and then. Thank you very much. Best Regards Max Görner