Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set mbox_type=Maildir
- set folder=~/Mail/
- set mail_check=5
- set spoolfile=+inbox
- set record=/dev/null
- mailboxes +inbox +accounts +companies +order_confirmations +personal +work +Sent
- source ~/xxx
- set from=xxx
- set smtp_url=xxx
- set ssl_force_tls
- set ssl_starttls
- # urlscan: ctrl+b to interact with urls
- 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"
- set editor="/usr/bin/nvim"
- # index interface
- set mail_check_stats # poll read/unread/etc counts
- set sidebar_visible
- set sidebar_width=30
- set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
- set mail_check_stats
- set index_format="[%Z] %-10g %{%b %d} %-20.20F %s"
- # set index_format="[%Z] %-10y %{%b %d} %-20.20F %s"
- set status_format="-%f %V%>-"
- set sort=threads
- set sort_aux=reverse-last-date-received
- # pager interface
- set pager_index_lines=6 # number of index lines to show
- set pager_context=3 # lines of context
- set pager_stop # don't jump to the next email at end of current one
- # attachments
- set mailcap_path=~/.config/neomutt/.mailcap
- auto_view text/html
- alternative_order text/plain text/enriched text/html
- bind attach <return> view-mailcap
- # press <enter> in the pager to view first attachment
- # useful for quickly seeing html
- # macro pager <return> "v<return>q"
- # save attachments to directory
- macro attach s <save-entry><bol>~/Downloads/<eol>
- # vim-like bindings
- bind index,pager g noop
- bind pager gg top
- bind pager G bottom
- bind alias,index,browser,query gg first-entry
- bind alias,index,browser,query G last-entry
- bind pager j next-line
- bind pager k previous-line
- bind pager \Cj next-entry
- bind pager \Ck previous-entry
- bind index za collapse-thread
- bind index D delete-thread
- bind alias,index,pager,browser,query \Cd half-down
- bind alias,index,pager,browser,query \Cu half-up
- bind index,pager y group-reply
- bind index J sidebar-next
- bind index K sidebar-prev
- bind index O sidebar-open
- bind alias,index,pager,browser,query x select-entry
- macro index M "<save-message>?<toggle-mailboxes>" "move to mailbox"
- # suppress "press any key to continue"
- unset wait_key
- macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
- # COLORS from https://www.sthu.org/code/codesnippets/mutt-gruvbox.html
- # gruvbox dark (contrast dark):
- # bg0 = 234
- # bg1 = 237
- # bg2 = 239
- # bg3 = 241
- # bg4 = 243
- #
- # gray = 245
- #
- # fg0 = 229
- # fg1 = 223
- # fg2 = 250
- # fg3 = 248
- # fg4 = 246
- #
- # red = 167
- # green = 142
- # yellow = 214
- # blue = 109
- # purple = 175
- # aqua = 108
- # orange = 208
- # See http://www.mutt.org/doc/manual/#color
- color attachment color109 color234
- color bold color229 color234
- color error color167 color234
- color hdrdefault color246 color234
- color indicator color223 color237
- color markers color243 color234
- color normal color223 color234
- color quoted color250 color234
- color quoted1 color108 color234
- color quoted2 color250 color234
- color quoted3 color108 color234
- color quoted4 color250 color234
- color quoted5 color108 color234
- color search color234 color208
- color signature color108 color234
- color status color234 color250
- color tilde color243 color234
- color tree color142 color234
- color underline color223 color239
- color sidebar_divider color250 color234
- color sidebar_new color142 color234
- color index color142 color234 ~N
- color index color108 color234 ~O
- color index color109 color234 ~P
- color index color214 color234 ~F
- color index color175 color234 ~Q
- color index color167 color234 ~=
- color index color234 color223 ~T
- color index color234 color167 ~D
- color header color214 color234 "^(To:|From:)"
- color header color142 color234 "^Subject:"
- color header color108 color234 "^X-Spam-Status:"
- color header color108 color234 "^Received:"
- color body color142 color234 "[a-z]{3,256}://[-a-zA-Z0-9@:%._\\+~#=/?&,]+"
- #color body color142 color234 "[a-zA-Z]([-a-zA-Z0-9_]+\\.){2,256}[-a-zA-Z0-9_]{2,256}"
- color body color208 color234 "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
- color body color208 color234 "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
- color body color234 color214 "[;:]-*[)>(<lt;|]"
- color body color229 color234 "\\*[A-Za-z]+\\*"
- color body color214 color234 "^-.*PGP.*-*"
- color body color142 color234 "^gpg: Good signature from"
- color body color167 color234 "^gpg: Can't.*$"
- color body color214 color234 "^gpg: WARNING:.*$"
- color body color167 color234 "^gpg: BAD signature from"
- color body color167 color234 "^gpg: Note: This key has expired!"
- color body color214 color234 "^gpg: There is no indication that the signature belongs to the owner."
- color body color214 color234 "^gpg: can't handle these multiple signatures"
- color body color214 color234 "^gpg: signature verification suppressed"
- color body color214 color234 "^gpg: invalid node with packet of type"
- color compose header color223 color234
- color compose security_encrypt color175 color234
- color compose security_sign color109 color234
- color compose security_both color142 color234
- color compose security_none color208 color234
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement