<<< Date Index >>>     <<< Thread Index >>>

Re: pipe-split + macro with tag-prefix: applies to only one message



On May 31 14:18, Christian Ebert wrote:
> * Steve S on Saturday, May 31, 2008 at 12:44:32 +0200
> > I have a macro with this signature:
> >    
> >    set pipe_split=yes
> >    macro index ,k '<tag-prefix><pipe-message>cat > $(tempfile) && echo 
> > "doing stuff..."<enter>'
> > 
> > If I tag some messages and hit `;,k`, the macro is applied to only one 
> > message.
> 
> I believe you are looking for <tag-prefix-cond> instead of
> <tag-prefix>.
> 

I should have been more specific. Yes, that works if and only if one or more
messages are tagged. However, as I understand [1], the above macro should
operate 

- on one or more tagged messages with `;,k`
- and on a single, non-tagged selected message with just `,k` if I want to
  treat only this one.

[1] http://wiki.mutt.org/?MuttGuide/Macros

steve