In my previous question I have learned how to implement trash functionality in mutt.

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

That works well, except that I have to confirm every deletion. I would like it to work without the delete confirmation. So that I only need to press d and then $ to sync, without being asked for confirmation.

Can somebody please suggest how to do it?

2 Answers 2

set delete=yes

That didn't work for me.

I have a different trash setting, so maybe it won't work for you. I did:

set confirmappend=no
folder-hook . 'macro index d "<save-message>=INBOX.Trash<enter>"'
folder-hook =trash 'macro index d <delete-message>' 

I guess you should remove from your configuration:

unset confirmappend

Found this in .muttrc

# delete without confirmation
set delete=yes
  • This is the correct answer to OP's question and the only thing needed. The accepted answer is a confusing mash from a different setup.
    – CR.
    Commented Mar 4, 2022 at 10:39

You must log in to answer this question.

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