summaryrefslogtreecommitdiff
path: root/.config/mutt/muttrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/mutt/muttrc')
-rw-r--r--.config/mutt/muttrc113
1 files changed, 113 insertions, 0 deletions
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
new file mode 100644
index 0000000..0bfa72a
--- /dev/null
+++ b/.config/mutt/muttrc
@@ -0,0 +1,113 @@
+set date_format="%d/%m/%Y, %H:%M"
+set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
+set sort = reverse-date
+set forward_format = "Fwd: %s"
+set forward_quote = yes
+set reverse_name = yes
+set wrap = 150
+set wait_key = no
+set sleep_time = 0
+set markers = no
+set mark_old = no
+set fast_reply = yes
+set include = yes
+set fcc_attach = yes
+set mime_forward = yes
+set mail_check = 60
+set mail_check_stats = yes
+set rfc2047_parameters = yes
+# set edit_headers = yes
+# set menu_scroll = yes
+set mime_type_query_command = "file --mime-type -b %s"
+set query_command = "abook --mutt-query '%s'"
+set smtp_authenticators = 'gssapi:login'
+set send_charset = "utf-8"
+set mailcap_path = ~/.config/mutt/mailcap:$mailcap_path
+set sidebar_visible = yes
+set sidebar_width = 25
+set sidebar_short_path = yes
+set sidebar_next_new_wrap = yes
+set sidebar_divider_char = "│"
+set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S "
+auto_view text/html
+auto_view application/pgp-encrypted
+alternative_order text/plain text/enriched text/html
+
+bind index,pager i noop
+bind index,pager g noop
+bind index,pager M noop
+bind index,pager C noop
+bind index \Cf noop
+bind index gg first-entry
+bind index j next-entry
+bind index k previous-entry
+bind attach <return> view-mailcap
+bind attach l view-mailcap
+bind editor <space> noop
+bind index G last-entry
+bind index gg first-entry
+bind pager,attach h exit
+bind pager j next-line
+bind pager k previous-line
+bind pager l view-attachments
+bind index D delete-message
+bind index U undelete-message
+bind index L limit
+bind index h noop
+bind index l display-message
+bind index,query <space> tag-entry
+macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
+bind browser l select-entry
+bind browser gg top-page
+bind browser G bottom-page
+bind pager gg top
+bind pager G bottom
+bind index,pager,browser d half-down
+bind index,pager,browser u half-up
+bind index,pager S sync-mailbox
+bind index,pager R group-reply
+bind index \031 previous-undeleted
+bind index \005 next-undeleted
+bind pager \031 previous-line
+bind pager \005 next-line
+bind editor <Tab> complete-query
+bind index,pager \Ck sidebar-prev
+bind index,pager \Cj sidebar-next
+bind index,pager \Co sidebar-open
+bind index,pager \Cp sidebar-prev-new
+bind index,pager \Cn sidebar-next-new
+bind index,pager B sidebar-toggle-visible
+
+#set crypt_autosign = yes
+#set crypt_opportunistic_encrypt = yes
+#set pgp_self_encrypt = yes
+#set pgp_default_key = 'your@gpgemailaddre.ss'
+
+macro attach 'V' "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt/mail.html<enter><shell-escape>$BROWSER ~/.cache/mutt/mail.html >/dev/null 2>&1<enter>"
+macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>printf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"
+macro index A "<limit>all\n" "show all messages (undo limit)"
+macro index,pager i1 '<sync-mailbox><enter-command>source ~/.config/mutt/accounts/example.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to example"
+
+color index brightcyan default "~N"
+color index brightblue default "~T"
+color index brightmagenta default ~F
+color sidebar_new brightcyan default
+color sidebar_divider yellow default
+color sidebar_indicator brightblack blue
+color hdrdefault yellow default
+color quoted blue default
+color signature blue default
+color attachment cyan default
+color prompt brightyellow default
+color message brightgreen default
+color error brightwhite default
+color indicator brightblack cyan
+color status brightblack yellow
+color tree white default
+color normal default default
+color markers red default
+color search white default
+color tilde brightgreen default
+
+source ~/.config/mutt/gpg.rc
+source ~/.config/mutt/accounts/example.muttrc