On 2002.01.07, in <[EMAIL PROTECTED]>,
        "Michael Montagne" <[EMAIL PROTECTED]> wrote:
> I have a macro that deletes older messages in the current folder.
> macro index <F2> T"~d>2w !~F"<enter>D"~T"<enter>
> Does anyone have any idea how I might apply this to all my folders with
> one blazingly fast keystroke?

I usually do things like this:

cd $HOME/Mail
for folder in *; do
        mutt -f "=$folder" -e "push '<tag-pattern>~d >2s 
!~F<enter><delete-pattern>~T<enter><sync-mailbox>y<exit>'"
done

YMMV, depending on the settings of certain variables. Best to try it out
on a single folder first.

Since you already have it bound to a keystroke, you could probably
shorten it a lot. :)

-- 
 -D.    [EMAIL PROTECTED]        NSIT    University of Chicago

Reply via email to