On Fri, Nov 16, 2001 at 05:07:59PM +0100, Nicolas Rachinsky <[EMAIL PROTECTED]> wrote:
> The second one adds a new command "tag-prefix-cond". It should behave
> exactly the same as tag-prefix, with one difference. If there are no
> tagged messages, it will empty the "ungetch-buffer", this seems to
> reliably stop/abort every macro. It's a hack, but it seems to work.

I should add, this works also for push commands (and it seems to work
for exec). I use the following in my .muttrc:
folder-hook "regex for all mailing list folders" "push 
\"<tag-pattern>~d>2w\n<untag-pattern>~F|~D\n<tag-prefix-cond><save-message>\n\n\""

It moves all messages older than 2 weeks except flagged ones to an
archive folder (I have other folder-hooks to set appropriate
save-hooks).

Nicolas

Reply via email to