Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.30 KB | None | 0 0
  1. set mbox_type=Maildir
  2. set folder=~/Mail/
  3. set mail_check=5
  4. set spoolfile=+inbox
  5. set record=/dev/null
  6. mailboxes +inbox +accounts +companies +order_confirmations +personal +work +Sent
  7.  
  8. source ~/xxx
  9. set from=xxx
  10. set smtp_url=xxx
  11. set ssl_force_tls
  12. set ssl_starttls
  13.  
  14. # urlscan: ctrl+b to interact with urls
  15. macro index,pager \cb "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
  16. macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"
  17.  
  18. set editor="/usr/bin/nvim"
  19.  
  20. # index interface
  21. set mail_check_stats # poll read/unread/etc counts
  22. set sidebar_visible
  23. set sidebar_width=30
  24. set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
  25. set mail_check_stats
  26. set index_format="[%Z] %-10g %{%b %d} %-20.20F %s"
  27. # set index_format="[%Z] %-10y %{%b %d} %-20.20F %s"
  28. set status_format="-%f %V%>-"
  29. set sort=threads
  30. set sort_aux=reverse-last-date-received
  31.  
  32. # pager interface
  33. set pager_index_lines=6 # number of index lines to show
  34. set pager_context=3 # lines of context
  35. set pager_stop # don't jump to the next email at end of current one
  36.  
  37. # attachments
  38. set mailcap_path=~/.config/neomutt/.mailcap
  39. auto_view text/html
  40. alternative_order text/plain text/enriched text/html
  41. bind attach <return> view-mailcap
  42.  
  43. # press <enter> in the pager to view first attachment
  44. # useful for quickly seeing html
  45. # macro pager <return> "v<return>q"
  46.  
  47. # save attachments to directory
  48. macro attach s <save-entry><bol>~/Downloads/<eol>
  49.  
  50. # vim-like bindings
  51. bind index,pager g noop
  52. bind pager gg top
  53. bind pager G bottom
  54. bind alias,index,browser,query gg first-entry
  55. bind alias,index,browser,query G last-entry
  56. bind pager j next-line
  57. bind pager k previous-line
  58. bind pager \Cj next-entry
  59. bind pager \Ck previous-entry
  60. bind index za collapse-thread
  61. bind index D delete-thread
  62. bind alias,index,pager,browser,query \Cd half-down
  63. bind alias,index,pager,browser,query \Cu half-up
  64. bind index,pager y group-reply
  65. bind index J sidebar-next
  66. bind index K sidebar-prev
  67. bind index O sidebar-open
  68. bind alias,index,pager,browser,query x select-entry
  69. macro index M "<save-message>?<toggle-mailboxes>" "move to mailbox"
  70.  
  71. # suppress "press any key to continue"
  72. unset wait_key
  73.  
  74. macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
  75.  
  76. # COLORS from https://www.sthu.org/code/codesnippets/mutt-gruvbox.html
  77. # gruvbox dark (contrast dark):
  78.  
  79. # bg0 = 234
  80. # bg1 = 237
  81. # bg2 = 239
  82. # bg3 = 241
  83. # bg4 = 243
  84. #
  85. # gray = 245
  86. #
  87. # fg0 = 229
  88. # fg1 = 223
  89. # fg2 = 250
  90. # fg3 = 248
  91. # fg4 = 246
  92. #
  93. # red = 167
  94. # green = 142
  95. # yellow = 214
  96. # blue = 109
  97. # purple = 175
  98. # aqua = 108
  99. # orange = 208
  100.  
  101.  
  102. # See http://www.mutt.org/doc/manual/#color
  103.  
  104. color attachment color109 color234
  105. color bold color229 color234
  106. color error color167 color234
  107. color hdrdefault color246 color234
  108. color indicator color223 color237
  109. color markers color243 color234
  110. color normal color223 color234
  111. color quoted color250 color234
  112. color quoted1 color108 color234
  113. color quoted2 color250 color234
  114. color quoted3 color108 color234
  115. color quoted4 color250 color234
  116. color quoted5 color108 color234
  117. color search color234 color208
  118. color signature color108 color234
  119. color status color234 color250
  120. color tilde color243 color234
  121. color tree color142 color234
  122. color underline color223 color239
  123.  
  124. color sidebar_divider color250 color234
  125. color sidebar_new color142 color234
  126.  
  127. color index color142 color234 ~N
  128. color index color108 color234 ~O
  129. color index color109 color234 ~P
  130. color index color214 color234 ~F
  131. color index color175 color234 ~Q
  132. color index color167 color234 ~=
  133. color index color234 color223 ~T
  134. color index color234 color167 ~D
  135.  
  136. color header color214 color234 "^(To:|From:)"
  137. color header color142 color234 "^Subject:"
  138. color header color108 color234 "^X-Spam-Status:"
  139. color header color108 color234 "^Received:"
  140.  
  141. color body color142 color234 "[a-z]{3,256}://[-a-zA-Z0-9@:%._\\+~#=/?&,]+"
  142. #color body color142 color234 "[a-zA-Z]([-a-zA-Z0-9_]+\\.){2,256}[-a-zA-Z0-9_]{2,256}"
  143. color body color208 color234 "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
  144. color body color208 color234 "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
  145. color body color234 color214 "[;:]-*[)>(<lt;|]"
  146. color body color229 color234 "\\*[A-Za-z]+\\*"
  147.  
  148. color body color214 color234 "^-.*PGP.*-*"
  149. color body color142 color234 "^gpg: Good signature from"
  150. color body color167 color234 "^gpg: Can't.*$"
  151. color body color214 color234 "^gpg: WARNING:.*$"
  152. color body color167 color234 "^gpg: BAD signature from"
  153. color body color167 color234 "^gpg: Note: This key has expired!"
  154. color body color214 color234 "^gpg: There is no indication that the signature belongs to the owner."
  155. color body color214 color234 "^gpg: can't handle these multiple signatures"
  156. color body color214 color234 "^gpg: signature verification suppressed"
  157. color body color214 color234 "^gpg: invalid node with packet of type"
  158.  
  159. color compose header color223 color234
  160. color compose security_encrypt color175 color234
  161. color compose security_sign color109 color234
  162. color compose security_both color142 color234
  163. color compose security_none color208 color234
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement