Re: Abort macro if limit pattern does not match anything

2022-11-29 Thread Kai Weber
* Max Görner : > 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. Have a look at

Re: Select message by attachment MIME type

2022-11-29 Thread Kevin J. McCarthy
On Tue, Nov 29, 2022 at 08:31:37PM +0100, Max Görner wrote: for a macro I would like to match a message based on its attachments. Since I have to use Outlook Web App, I often get calender events as e-mail. Messages telling me that someone accepted my invitation are empty and contain an

Re: Abort macro if limit pattern does not match anything

2022-11-29 Thread Kevin J. McCarthy
On Tue, Nov 29, 2022 at 08:25:02PM +0100, Max Görner wrote: 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. Hi Max, Have you tried using instead of ";" in your macro? See

Select message by attachment MIME type

2022-11-29 Thread Max Görner
Hello, for a macro I would like to match a message based on its attachments. Since I have to use Outlook Web App, I often get calender events as e-mail. Messages telling me that someone accepted my invitation are empty and contain an attachment without a name but with file type text/calendar.

Abort macro if limit pattern does not match anything

2022-11-29 Thread Max Görner
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 "?" "move a message to a mailbox" macro index