On Thu, Mar 21, 2013 at 10:33:53AM -0500, David Champion wrote: > * On 21 Mar 2013, Louis-David Mitterrand wrote: > > Hi, > > > > I have this macro to archive messages: > > > > macro pager,index Sl "<tag-pattern>~h'Return-Path: > > <u...@example.com>'<enter><tag-prefix><save-message>=Archive<enter>" > > "archive messages" > > > > But if no messages have been tagged then <tag-prefix> fails and the > > currently hightlighted message gets archived. > > > > What is the correct way to do it? > > tag-prefix-cond apply next function ONLY to tagged messages > > macro pager,index Sl "<tag-pattern>~h'Return-Path: > <u...@example.com>'<enter><tag-prefix-cond><save-message>=Archive<enter>" > "archive messages"
Thanks, a kind soul also gave me the solution on #mutt.