My dotfiles for my Linux rice managed with stow and make
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
4.2 KiB

source $XDG_CONFIG_HOME/mutt/gmailrc
source $XDG_CONFIG_HOME/mutt/muttcol
source $XDG_CONFIG_HOME/mutt/aliases
macro index P '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/gmailrc<enter><change-folder>!<enter>'
macro index S '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/gatechrc<enter><change-folder>!<enter>'
set editor = $EDITOR
set timeout = "5"
set wait_key = no
set markers = no
set mail_check = "10"
set mailcap_path = $XDG_CONFIG_HOME/mutt/mailcap
set date_format="%m/%d %I:%M"
set index_format="%?M?+& ?%2M %2C %Z %d %-15.15F %s (%-4.4c)"
set signature = $XDG_CONFIG_HOME/mutt/signature
set sendmail_wait = -1
set fast_reply
set reverse_name
set include
set pgp_use_gpg_agent
set pgp_replyencrypt
set pgp_replysign
set pgp_replysignencrypted
set pgp_verify_sig=yes
set pgp_show_unusable = no
set pgp_sign_as="0xBEB8056E542A33EB8A4B081F723F998E98D93D50"
# Forwards
set mime_forward = yes
set forward_format = "Fwd: %s"
set forward_quote
# Threads
set sort = 'threads'
set sort_aux = 'reverse-last-date-received'
set strict_threads="yes"
bind index <Space> collapse-thread
bind index - collapse-thread
bind index _ collapse-all
exec collapse-all
# Sidebar
set sidebar_visible = no
set sidebar_folder_indent=no
set sidebar_short_path
set mail_check_stats = yes
set sidebar_divider_char = ' │ '
set sidebar_delim_chars='/.'
bind index,pager B sidebar-toggle-visible
bind index,pager \Ck sidebar-prev
bind index,pager \Cj sidebar-next
bind index,pager \Cl sidebar-open
bind attach \Ck noop
macro attach \Ckp "<pipe-message>khal import -a Micah<enter>"
auto_view text/html
alternative_order text/plain text/enriched text/html
mono bold bold
mono underline underline
mono indicator reverse
color index yellow default '.*' #normal email
color index green default "~v~(!~N)~(!~F)" #collapsed threads
color index red default "~T" #tagged
color index_author red default '.*'
color index_number blue default
color index_subject cyan default '.s'
color index_size green default
color normal default default
color body brightred default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
color body brightblue default (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+
color indicator blue default
bind editor <space> noop
bind index j next-entry
bind index k previous-entry
bind index l display-message
bind index G last-entry
bind index gg first-entry
bind index d half-down
bind index u half-up
bind index D delete-message
bind index U undelete-message
bind index F search
bind index R group-reply
bind index L limit
bind pager j next-line
bind pager k previous-line
bind pager l view-attachments
bind attach <return> view-mailcap
bind attach l view-mailcap
# address book settings
bind editor <Tab> complete-query
bind editor ^T complete
bind index,pager a noop
macro index,pager ac "<pipe-message>khard add-email<return>" "Add sender to Khard"
bind index,pager s noop
macro index,pager sc "<shell-escape>vdirsyncer sync gaddr<return>" "sync contacts"
macro index Z "<shell-escape>mbsync -c $XDG_CONFIG_HOME/isync/mbsyncrc -a<enter>" "sync all mail"
macro index,pager \cu "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
macro attach,compose \cu "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"
macro compose A "<shell-escape>rangerpicker attach<enter><enter-command>source /tmp/rangerpick<enter>" "Attach with Ranger"
macro attach S "<shell-escape>rangerpicker<enter><pipe-message>rangerpicker save<return>"
# notmuch search
macro index \Cf \
"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
<shell-escape>notmuch-mutt -r --prompt search<enter>\
<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
"notmuch: search mail"
macro index \Cg \
"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
<pipe-message>notmuch-mutt -r thread<enter>\
<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
"notmuch: reconstruct thread"