what i want: I want to delete "local" mails (i use fetchmail to download mails 
into my local folder "offline") into "local" Trash folder. like move mails from 
this folder into
another folder(Trash), 

thanks for your help.

I have tried bwllowing methods, but all are failed.

        # move marked delete mails into Trash when you press "d"
        # you only need to save save-message function into your Trash. like 
$HOME/.mutt/mails/Trash , mail will auto be marked with "D" , in order let "d"
        # to save mails to Trash, you can bind a macro for "d".
        # if you want to delete mails in Trash, this is a loop. so you need to 
recover delete-message function of "d" in Trash, and use "d" in other mailboxes.

        # folder-hook . 'macro index d "$HOME/.mutt/mails/trash\r"'
        # folder-hook $HOME/.mutt/mails/trash 'bind index d delete-message'

        # folder-hook .      'macro index d "<save-message>=trash<enter>"'
        # folder-hook =trash 'macro index d <delete-message>'

        # macro index d "<save-message>=.Trash\n"
        # macro pager d "<save-message>=.Trash\n"

-- 
I try to detoxify my memory. 
Forget can not be treated as betray.
It's not certainly a love even though you  remember to the end of your life.

Reply via email to