I'd like the following configuration for my mutt.
If the email is in the
foo folder in mutt, then the
s key in the attachment view should save the attachment to the
In any other mailbox, the
s key should be mapped to the normal
<save-entry> command in the attachment view.
I tried to use a
folder-hook to map a new macro like this:
folder-hook foo "macro attach s <save-entry><kill-line>~/bar/<enter>"
But, this command does not unset the macro as soon as I move to a different mailbox. How can I accomplish this unsetting of the macro for all other folders?