Skip to content

Source for bindings

Copied from http://linuxbrit.co.uk/downloads/dot.muttrc

# Bindings for attach menu
bind attach ' ' select-entry
bind attach <left> exit
bind attach <right> view-attach

# Bindings for browser menu
bind browser x check-new
bind browser <right> select-entry
bind browser <left> exit

# Bindings for compose menu
bind compose \n send-message
bind compose s send-message

# Bindings for index
bind index a tag-prefix
bind index s save-message
bind index t tag-entry
bind index x sync-mailbox
bind index P recall-message
bind index V show-version
bind index \t next-new
bind index ' ' next-unread
bind index \; tag-entry
bind index <pagedown> next-page
bind index <pageup> previous-page
bind index <right> display-message
macro index <left> "c?<tab>" "Go to Index"
macro index G "! /usr/bin/setlock -n /tmp/gmlock /usr/bin/getmail --quiet"\n "Get mail from POP server"

macro index ,l "l~N ! ~p\n" "List only new messages NOT addressed to me"
macro index ,n "l~N\n" "List only new messages"
macro index "\\S" "c=Sent\r" "Go to Sent"
macro index A |'mail2muttalias.py ~/.mutt/aliases'\n "Create new alias from the actual message"
macro index G "! /usr/bin/setlock -n /tmp/gmlock /usr/bin/getmail --quiet"\n "Get mail from POP server"
macro index I "c!\n" "Go to Inbox"

# Bindings for pager
bind pager b bounce-message
bind pager f forward-message
bind pager g group-reply
bind pager j next-line
bind pager k previous-line
bind pager m mail
bind pager n next-undeleted
bind pager p previous-undeleted
bind pager L list-reply
bind pager V show-version
bind pager \n next-new
bind pager ,p print-message
bind pager \t next-new
bind pager ' ' next-unread
bind pager / search
bind pager : enter-command
bind pager <up> previous-line
bind pager <down> next-line
bind pager <left> exit
bind pager <right> view-attachments

macro pager "\\S" "c=Sent\r" "Go to Sent"
macro pager A |'mail2muttalias.py ~/.mutt/aliases'\n "Create new alias from the actual message"
macro pager G "! /usr/bin/setlock -n /tmp/gmlock /usr/bin/getmail --quiet"\n "Get mail from POP server"
macro pager I "c!\n" "Go to Inbox"

macro index,pager \cb "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"

#macro index,pager \cb "<enter-command> set my_pdsave=\$pipe_decode<enter>\
#<enter-command> unset pipe_decode<enter>\
#<pipe-message>extract_url.pl<enter>\
#<enter-command> set pipe_decode=\$my_pdsave<enter>" "get URLs"

Last update: April 1, 2021