Migrate to rcm
This commit is contained in:
67
config/mutt/colors
Normal file
67
config/mutt/colors
Normal file
@@ -0,0 +1,67 @@
|
||||
source ~/.config/mutt/colors-gruvbox-shuber.muttrc
|
||||
# For neomutt uncomment this line:
|
||||
source ~/.config/mutt/colors-gruvbox-shuber-extended.muttrc
|
||||
|
||||
# Sidebar
|
||||
#
|
||||
# Color of the highlighted, but not open, mailbox.
|
||||
color sidebar_highlight black color8
|
||||
# Color of the divider separating the Sidebar from NeoMutt panels
|
||||
color sidebar_divider color8 color234
|
||||
# Color to give mailboxes containing flagged mail
|
||||
color sidebar_flagged default color234
|
||||
# Color to give mailboxes containing new mail
|
||||
color sidebar_new color108 color234
|
||||
# color sidebar_spoolfile green default
|
||||
color sidebar_spoolfile yellow color234
|
||||
# Color to give mailboxes containing no new/flagged mail, etc.
|
||||
color sidebar_ordinary default color234
|
||||
|
||||
# Color if the attachment is autoviewed
|
||||
color attach_headers brightgreen default "Autoview"
|
||||
# Color only the brackets around the headers
|
||||
color attach_headers brightyellow default "^\\[--"
|
||||
color attach_headers brightyellow default "--]$"
|
||||
# Color the mime type and the size
|
||||
color attach_headers green default "Type: [a-z]+/[a-z0-9\-]+"
|
||||
color attach_headers green default "Size: [0-9\.]+[KM]"
|
||||
# Color GPGME signature checks
|
||||
color attach_headers brightgreen default "Good signature from.*"
|
||||
color attach_headers brightred default "Bad signature from.*"
|
||||
color attach_headers brightred default "BAD signature from.*"
|
||||
color attach_headers brightred default "Note: This key has expired!"
|
||||
color attach_headers brightmagenta default "Problem signature from.*"
|
||||
color attach_headers brightmagenta default "WARNING: This key is not certified with a trusted signature!"
|
||||
color attach_headers brightmagenta default " There is no indication that the signature belongs to the owner."
|
||||
color attach_headers brightmagenta default "can't handle these multiple signatures"
|
||||
color attach_headers brightmagenta default "signature verification suppressed"
|
||||
color attach_headers brightmagenta default "invalid node with packet of type"
|
||||
|
||||
# Author name, %A %a %F %L %n
|
||||
# Give the author column a dark grey background
|
||||
color index_author default color234 '.*'
|
||||
# Highlight a particular from (~f)
|
||||
# color index_author brightyellow color234 '~fRay Charles'
|
||||
# Message flags, %S %Z
|
||||
# Highlight the flags for flagged (~F) emails
|
||||
color index_flags default red '~F'
|
||||
# Subject, %s
|
||||
# Look for a particular subject (~s)
|
||||
# color index_subject brightcyan default '~s\(closes #[0-9]+\)'
|
||||
# Number of messages in a collapsed thread, %M
|
||||
color index_collapsed default brightblue
|
||||
# Date field
|
||||
color index_date green default
|
||||
# Message label, %y %Y
|
||||
color index_label default brightgreen
|
||||
# Message number, %C
|
||||
color index_number red default
|
||||
# Message size, %c %l
|
||||
color index_size cyan default
|
||||
|
||||
# The 'progress' feature provides clear visual feedback for
|
||||
# slow tasks, such as indexing a large folder over the net.
|
||||
|
||||
# Set the color of the progress bar
|
||||
# White text on a red background
|
||||
color progress white red
|
||||
6
config/mutt/colors-gruvbox-shuber-extended.muttrc
Normal file
6
config/mutt/colors-gruvbox-shuber-extended.muttrc
Normal file
@@ -0,0 +1,6 @@
|
||||
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
|
||||
|
||||
81
config/mutt/colors-gruvbox-shuber.muttrc
Normal file
81
config/mutt/colors-gruvbox-shuber.muttrc
Normal file
@@ -0,0 +1,81 @@
|
||||
# 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"
|
||||
4
config/mutt/mailcap
Normal file
4
config/mutt/mailcap
Normal file
@@ -0,0 +1,4 @@
|
||||
text/html; elinks %s; nametemplate=%s.html
|
||||
text/html; elinks -dump %s; nametemplate=%s.html; copiousoutput
|
||||
application/pdf; xdg-open %s; copiousoutput
|
||||
image/*; xdg-open %s
|
||||
179
config/mutt/muttrc
Normal file
179
config/mutt/muttrc
Normal file
@@ -0,0 +1,179 @@
|
||||
## General options
|
||||
set header_cache = "~/.cache/mutt"
|
||||
|
||||
set mbox_type = Maildir
|
||||
set folder = ~/Mail
|
||||
set include
|
||||
set markers = no
|
||||
set realname = "Sergey Besedin"
|
||||
set reverse_name
|
||||
|
||||
set confirmappend = no
|
||||
set delete
|
||||
set edit_headers
|
||||
set fast_reply
|
||||
set mail_check = 30
|
||||
set move = no
|
||||
set sort_browser = date
|
||||
set sort = threads
|
||||
set sort_aux = reverse-last-date-received
|
||||
set editor = "nvim"
|
||||
set send_charset = "utf-8"
|
||||
|
||||
set new_mail_command="notify-send 'New e-mail' '%n new messages, %u unread.' &"
|
||||
|
||||
source ~/.config/mutt/colors
|
||||
|
||||
# notmuch configuration
|
||||
# set nm_default_uri = "notmuch:///home/krsh/Mail"
|
||||
# set virtual_spoolfile=yes
|
||||
#
|
||||
# virtual-mailboxes "inbox" "notmuch://?query=tag:inbox"
|
||||
# virtual-mailboxes "archive" "notmuch://?query=tag:archive"
|
||||
# virtual-mailboxes "sent" "notmuch://?query=tag:sent"
|
||||
# virtual-mailboxes "newsletters" "notmuch://?query=tag:newsletters"
|
||||
#
|
||||
# macro index A "<modify-labels>+archive -unread -inbox\\n" "Archive message"
|
||||
# macro index c "<change-vfolder>?" "Change to vfolder overview"
|
||||
# macro index \\\\ "<vfolder-from-query>" "Search mailbox"
|
||||
|
||||
# set nm_db_limit = 0
|
||||
# set nm_exclude_tags = "spam"
|
||||
# set nm_query_type = "messages"
|
||||
|
||||
# The messages tagged with these tags are excluded and not loaded
|
||||
# from notmuch DB to NeoMutt unless specified explicitly.
|
||||
|
||||
# # This option specifies timeout for Notmuch database. Default is 5 seconds.
|
||||
# set nm_open_timeout = 5
|
||||
# # This variable specifies notmuch query type, supported types: 'threads' and
|
||||
# # 'messages'.
|
||||
# set nm_query_type = messages
|
||||
# # Add messages stored to the NeoMutt record (see $record in the NeoMutt docs)
|
||||
# # also to notmuch DB. If you reply to an email then the new email inherits
|
||||
# # tags from the original email.
|
||||
# set nm_record = no
|
||||
# # Tags that should be removed or added to the to the messages stored in the NeoMutt record.
|
||||
# # example:
|
||||
# # set record = "~/sent-mails"
|
||||
# # set nm_record = yes
|
||||
# # set nm_record_tags = "-inbox,archive,me"
|
||||
# set nm_record_tags = ""
|
||||
# # This variable specifies notmuch tag which is used for unread messages.
|
||||
# set nm_unread_tag = unread
|
||||
# # This variable allows you to customize the file browser display for virtual
|
||||
# # folders to your personal taste.
|
||||
# # %C current folder number
|
||||
# # %f folder name (description)
|
||||
# # %m number of messages in the mailbox *
|
||||
# # %n number of unread messages in the mailbox *
|
||||
# # %N N if mailbox has new mail, blank otherwise
|
||||
# # %>X right justify the rest of the string and pad with character ``X''
|
||||
# # %|X pad to the end of the line with character ``X''
|
||||
# # %*X soft-fill with character ``X'' as pad
|
||||
# set vfolder_format = "%6n(%6N) %f"
|
||||
# # When set, NeoMutt will use the first virtual mailbox (see virtual-mailboxes)
|
||||
# # as a spoolfile.
|
||||
# set virtual_spoolfile = no
|
||||
# setup time window preferences
|
||||
# first setup the duration, and then the time unit of that duration
|
||||
# when set to 0 (the default) the search window feature is disabled
|
||||
# set nm_query_window_duration=1
|
||||
# set nm_query_window_timebase="month" # or "hour", "day", "week", "month", "year"
|
||||
# --------------------------------------------------------------------------
|
||||
# FUNCTIONS – shown with an example mapping
|
||||
# --------------------------------------------------------------------------
|
||||
# open a different virtual folder
|
||||
# bind index,pager X change-vfolder
|
||||
# # read entire thread of the current message
|
||||
# bind index,pager + entire-thread
|
||||
# # generate virtual folder from query
|
||||
# bind index,pager \eX vfolder-from-query
|
||||
# # generate virtual folder from query with time window
|
||||
# bind index < vfolder-window-backward
|
||||
# bind index > vfolder-window-forward
|
||||
|
||||
set sidebar_width = 30
|
||||
set sidebar_visible = no
|
||||
# set sidebar_format = "%B%?F? ?%* %?N?%N/?%S"
|
||||
set sidebar_format = "%B %* %?N?%N/?%?S?%S?"
|
||||
set sidebar_new_mail_only = no
|
||||
set sidebar_delim_chars = "/" # Delete everything up to the last / character
|
||||
set sidebar_short_path = no
|
||||
set sidebar_folder_indent # Indent folders whose names we've shortened
|
||||
set sidebar_indent_string=" " # Indent with two spaces
|
||||
set mail_check_stats
|
||||
|
||||
set pager_index_lines = 10
|
||||
|
||||
# The default index_format is:
|
||||
# '%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s'
|
||||
#
|
||||
# We replace the date field '%{%b %d}', giving:
|
||||
set index_format='%4C %Z %<[y?%<[m?%<[d?%[%H:%M ]&%[%a %d]>&%[%b %d]>&%[%m/%y ]> %-15.15L (%?l?%4l&%4c?) %s'
|
||||
# Test Date Range Format String Example
|
||||
# --------------------------------------------
|
||||
# %[d Today %[%H:%M ] 12:34
|
||||
# %[m This month %[%a %d] Thu 12
|
||||
# %[y This year %[%b %d] Dec 10
|
||||
# — Older %[%m/%y ] 06/15
|
||||
|
||||
|
||||
# Limit view to current thread
|
||||
bind index <esc>L limit-current-thread
|
||||
|
||||
# The 'S' (skip-quoted) command scrolls the pager past the quoted text (usually
|
||||
# indented with '> '. Setting 'skip_quoted_offset' leaves some lines of quoted
|
||||
# text on screen for context.
|
||||
|
||||
# Show three quoted lines before the reply
|
||||
set skip_quoted_offset = 3
|
||||
|
||||
# Macros
|
||||
macro index Z "<shell-escape>mbsync -a<enter>" "Sync all"
|
||||
|
||||
# More vim-like bindings
|
||||
# bind index i noop
|
||||
bind attach,index g noop # clear for next binding
|
||||
bind attach,index gg first-entry
|
||||
bind attach,index G last-entry
|
||||
bind index N search-opposite
|
||||
# bind pager i exit
|
||||
# bind pager q toggle-quoted
|
||||
bind pager / search
|
||||
|
||||
# QWERTY
|
||||
bind pager j next-line
|
||||
bind pager k previous-line
|
||||
|
||||
bind pager g noop # clear for next binding
|
||||
bind pager gg top
|
||||
bind pager G bottom
|
||||
bind index,pager \# noop
|
||||
bind index,pager \& noop
|
||||
bind index,pager R group-reply
|
||||
|
||||
## Keys
|
||||
bind attach,index,pager \CD next-page
|
||||
bind attach,index,pager \CU previous-page
|
||||
|
||||
bind index,pager B sidebar-toggle-visible
|
||||
bind index,pager \CO sidebar-open
|
||||
|
||||
# QWERTY
|
||||
bind index,pager \Ck sidebar-prev
|
||||
bind index,pager \Cj sidebar-next
|
||||
|
||||
macro attach 'V' "<pipe-entry>cat > ~/.cache/mutt/mail.html; ~/bin/preview-html ~/.cache/mutt/mail.html; rm ~/.cache/mutt/mail.html<enter>"
|
||||
macro index 'c' '<change-folder>?<change-dir><home>^K=<enter>'
|
||||
|
||||
set mailcap_path = ~/.config/mutt/mailcap
|
||||
auto_view text/html
|
||||
alternative_order text/plain text/html
|
||||
|
||||
folder-hook . 'set read_inc=1000'
|
||||
|
||||
# GnuPG bootstrap
|
||||
# source ~/.mutt/gpg.rc
|
||||
|
||||
source ~/.config/mutt/mailboxes.muttrc
|
||||
Reference in New Issue
Block a user