You are not logged in.
Hello,
I just recently started using mutt and it's amazing!!
Been googling around to solve interesting behaviors and im am stumped about this one...
So i can use the below keycombos to do certain actions, including delete (move to Trash):
bind editor <space> noop # because "All Mail" and "Sent Mail" have a space in them...
# Gmail-style keyboard shortcuts
macro index ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
macro index gs "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to sent mail"
macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index gt "<change-folder>=[Gmail]/Trash<enter>" "Go to trash"
macro index,pager d "<save-message>=[Gmail]/Trash<enter><enter>" "Trash"
I am trying to figure out how to use the 'D' delete-pattern option to also move to Trash.
Actual Behavior
delete-pattern 'shift-D' moves all my emails that matched my search to "All Mail" folder
hoped behavior
delete-pattern 'shift-D' moves emails to "Trash" folder
Im assuming it is some form of macro but not really too sure how.
Any input is much appreciated!
Thanks,
Dave
Last edited by davama (2019-11-29 19:53:40)
Offline
You haven't assigned a macro to D, only to d.
Offline
Hi!
Press "?" to get a list of current keybindings and "$" to purge messages that are marked for deletion. Trash management -examples are here: MacroSamples
Offline
Thank you for the reply!
Yes, was trying to figure out what is that macro.
Been googling for it
Thanks again!
Offline
Figured it out!
So needed to set the 'trash' for my account
set trash = "imaps://imap.gmail.com/[Gmail]/Trash"
Marking solved
Offline