You are not logged in.

#1 2019-11-29 17:24:22

davama
Member
From: NY
Registered: 2014-02-07
Posts: 44

[Solved]mutt delete-pattern with capital D moves email to All Mail

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

#2 2019-11-29 17:55:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 28,157
Website

Re: [Solved]mutt delete-pattern with capital D moves email to All Mail

You haven't assigned a macro to D, only to d.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-11-29 18:00:41

koffeinfriedhof
Member
Registered: 2017-11-30
Posts: 33

Re: [Solved]mutt delete-pattern with capital D moves email to All Mail

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

#4 2019-11-29 18:00:56

davama
Member
From: NY
Registered: 2014-02-07
Posts: 44

Re: [Solved]mutt delete-pattern with capital D moves email to All Mail

Thank you for the reply!
Yes, was trying to figure out what is that macro.
Been googling for it

Thanks again!

Offline

#5 2019-11-29 19:52:54

davama
Member
From: NY
Registered: 2014-02-07
Posts: 44

Re: [Solved]mutt delete-pattern with capital D moves email to All Mail

Figured it out!


So needed to set the 'trash' for my account

set trash = "imaps://imap.gmail.com/[Gmail]/Trash"

Marking solved

Offline

Board footer

Powered by FluxBB