logo

dotfiles

My dotfiles, one branch per machine, rebased on base git clone https://anongit.hacktivis.me/git/dotfiles.git/

.muttrc (3929B)


  1. set mbox_type=Maildir
  2. # Don't wait for user to press a key after an ext-command
  3. set wait_key=no
  4. # Serious-fucking-ly…
  5. set sleep_time=0
  6. set edit_headers=yes
  7. # this should be the default, soft-newline via using a trailing space
  8. set text_flowed=yes
  9. # Uses tmux to launch editor in another pane
  10. set background_edit=yes
  11. set editor = 'mutt-bgedit-tmux vis'
  12. set suspend=no
  13. set use_8bitmime=yes
  14. # should also be set as default, allows to forward an email as a MIME attachment
  15. set mime_forward=ask-yes
  16. alternates `sed -e 's;^;^;' -e 's;$;$;' /etc/mail/domains-regex`
  17. # Better fallback than user@FQDN
  18. set from=contact@hacktivis.me
  19. set reverse_name
  20. # ~/.local/bin/list-mailboxes.sh
  21. mailboxes `list-mailboxes.sh`
  22. ## caching
  23. set header_cache = ~/.cache/mutt/headers/
  24. # Assume that mutt is the only client
  25. set maildir_header_cache_verify = no
  26. # Put sent email in the same-folder, actually useless given that most mailing-list software sends you a copy back
  27. #folder-hook . set record=^
  28. ## Address-based mailing-list status detection
  29. lists '.*@lists?\.*'
  30. subscribe '.*@lists.gentoo.org$' '.*@lists.sr.ht$'
  31. ## Sidebar
  32. set sidebar_visible
  33. set sidebar_on_right
  34. set sidebar_format="%B %> (%N/%S)"
  35. set sidebar_short_path=yes
  36. set sidebar_folder_indent=yes
  37. macro index G '<enter-command>toggle sidebar_visible<enter><refresh>'
  38. macro pager G '<enter-command>toggle sidebar_visible<enter><redraw-screen>'
  39. bind index,pager \Ck sidebar-prev
  40. bind index,pager \Cj sidebar-next
  41. bind index,pager \Cl sidebar-open
  42. ## Visual
  43. alternative_order text/plain text/html
  44. auto_view 'text/html' 'application/tlsrpt+gzip'
  45. ignore *
  46. unignore 'Date' 'Subject' 'From' 'To' 'Cc' 'Reply-To' 'List-ID' 'Message-ID' 'In-Reply-To' 'References' 'X-Spamd-Bar' 'X-Spam-Score'
  47. hdr_order 'Date' 'Subject' 'From' 'To' 'Cc' 'Reply-To' 'List-ID' 'Message-ID' 'In-Reply-To' 'References' 'X-Spamd-Bar' 'X-Spam-Score'
  48. set pager_index_lines=10
  49. set markers=no
  50. set index_format = "%4C | %Z [%D] %-20.20O : %-30.30F (%-4.4c) %s"
  51. set date_format = "%F %T%z"
  52. set attribution = '[%d] %n:\n'
  53. set sort = 'threads'
  54. set sort_aux = 'last-date-received'
  55. # no continous scrolling
  56. set pager_stop = yes
  57. ## Keybindings
  58. bind pager j next-line
  59. bind pager k previous-line
  60. # Is C++ the worst language? Yes.
  61. # terminate called after throwing an instance of 'std::runtime_error'
  62. # what(): locale::facet::_S_create_c_locale name not valid
  63. # Aborted (core dumped)
  64. macro index a '<pipe-message>LC_ALL=C rspamc learn_ham<enter><save-message>=.Archive<enter>y'
  65. macro index,pager S '<pipe-message>LC_ALL=C rspamc learn_spam<enter><save-message>=.spam<enter>y'
  66. macro index,pager P '<pipe-message>LC_ALL=C rspamc learn_spam<enter><save-message>=.phishing<enter>y'
  67. ## Theme
  68. color index cyan black ~O
  69. color index brightcyan black ~N
  70. color index brightyellow black ~F
  71. color index black green ~T
  72. color index brightred black ~D
  73. mono index bold ~O
  74. mono index bold ~N
  75. mono index bold ~F
  76. mono index bold ~T
  77. mono index bold ~D
  78. color header yellow black "^from:"
  79. color header yellow black "^to:"
  80. color header yellow black "^subject:"
  81. color header yellow black "^date:"
  82. mono header bold "^from:"
  83. mono header bold "^to:"
  84. mono header bold "^subject:"
  85. mono header bold "^date:"
  86. color quoted cyan black
  87. color quoted1 yellow black
  88. color quoted2 red black
  89. color quoted3 green black
  90. color quoted4 cyan black
  91. color quoted5 yellow black
  92. color quoted6 red black
  93. color quoted7 green black
  94. color error red black
  95. color body red black "@?lanodan"
  96. # Patch file highlighting
  97. # Based on https://www.redhat.com/archives/libvir-list/2012-July/msg01100.html
  98. color body green black "^diff \-.*"
  99. color body green black "^index [a-f0-9].*"
  100. color body green black "^[\-]{3} .*"
  101. color body green black "^[\+]{3} .*"
  102. color body cyan black "^[\+][^\+]+.*"
  103. color body red black "^\-[^\-]+.*"
  104. color body white black "^\ [^\ ]+.*"
  105. color body brightblue black "^@@ .*"
  106. mono bold bold
  107. mono underline underline
  108. mono indicator reverse