I am trying to set up trash
in mutt. The macro at MacroSamples does not work:
set maildir_trash=yes
set wait_key=no
folder-hook . 'bind index q quit'
folder-hook inbox 'macro index q ":unset maildir_trash;push \"T~D\\n<tag-prefix-cond>m=trash\\n<end-cond><quit>\"\n"'
when I press d
nothing happens. When I pres q
instead of exiting, mutt asks:
Subject: <end-cond><quit>
I have to cancel it with CTRL-c
Can somebody please advise how to set up trash folder
that actually works?
Best Answer
This has worked for me for some time:
That is, move emails to the
trash
folder when deleting, unless you are in thetrash
folder.