On Thursday, 01.12.2022 at 07:41 +1100, Cameron Simpson wrote:

> On 30Nov2022 08:13, Kai Weber <[email protected]> wrote:
> > * Max G�rner <[email protected]>:
> > 
> > > 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 <tag-prefix-cond>
> 
> As an example, my folder hooks have this:
> 
>     folder-hook .         'push 
> "<tag-pattern>~P~N<enter><tag-prefix-cond><clear-flag>N<untag-pattern>~T<enter><end-cond>"'
> 
> which marks all "NEW" messages from me as not new.

This approach also helpfully puts the message "Nothing to do" in the status
message, which is very handy.

Cheers,

Dave.

-- 
Dave Ewart, [email protected]

Attachment: signature.asc
Description: PGP signature

Reply via email to