6

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?

1

2 Answers 2

6

According to the mutt documentation, setting the trash variable does this.

Mutt documentation RE trash

I set this in my .muttrc:

set trash=+"Trash"

and it appears to work. (I'm on an IMAP server.) It does query if you want to copy the mail to the Trash folder, just like saving in another folder. And, if you are in the Trash directory and you delete a message, it asks if you want to save it to Trash. But I don't generally go into the Trash directory and delete items. I let the server do it after the specified time period.

5
+100

This has worked for me for some time:

unset confirmappend
folder-hook . set trash="=trash"
folder-hook trash$ unset trash

That is, move emails to the trash folder when deleting, unless you are in the trash folder.

3

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .