summaryrefslogtreecommitdiff
path: root/.config/neomutt
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2021-05-17 17:34:20 +0400
committerAndrew <saintruler@gmail.com>2021-05-17 17:34:20 +0400
commit7044d9611cc44ebb61838d7eb06f7833ba183977 (patch)
tree295c19e4b05312810f23b225ae0c9cc57b2924dd /.config/neomutt
parentd963285b69e05530e7bf873d16ab4e5dee92fb78 (diff)
Added neomutt and isync configs, changed terminal to alacritty, changed color scheme of rofi
Diffstat (limited to '.config/neomutt')
-rw-r--r--.config/neomutt/colors.mutt71
-rw-r--r--.config/neomutt/mailcap1
-rw-r--r--.config/neomutt/neomuttrc32
3 files changed, 104 insertions, 0 deletions
diff --git a/.config/neomutt/colors.mutt b/.config/neomutt/colors.mutt
new file mode 100644
index 0000000..bbb5ece
--- /dev/null
+++ b/.config/neomutt/colors.mutt
@@ -0,0 +1,71 @@
+# Default index colors:
+color index yellow default '.*'
+color index_author red default '.*'
+color index_number blue default
+color index_subject cyan default '.*'
+
+# New mail is boldened:
+color index brightyellow black "~N"
+color index_author brightred black "~N"
+color index_subject brightcyan black "~N"
+
+# Tagged mail is highlighted:
+color index brightyellow blue "~T"
+color index_author brightred blue "~T"
+color index_subject brightcyan blue "~T"
+
+# Other colors and aesthetic settings:
+mono bold bold
+mono underline underline
+mono indicator reverse
+mono error bold
+color normal default default
+color indicator brightblack white
+color sidebar_highlight red default
+color sidebar_divider brightblack black
+color sidebar_flagged red black
+color sidebar_new green black
+color normal brightyellow default
+color error red default
+color tilde black default
+color message cyan default
+color markers red white
+color attachment white default
+color search brightmagenta default
+color status brightyellow black
+color hdrdefault brightgreen default
+color quoted green default
+color quoted1 blue default
+color quoted2 cyan default
+color quoted3 yellow default
+color quoted4 red default
+color quoted5 brightred default
+color signature brightgreen default
+color bold black default
+color underline black default
+color normal default default
+
+# Regex highlighting:
+color header blue default ".*"
+color header brightmagenta default "^(From)"
+color header brightcyan default "^(Subject)"
+color header brightwhite default "^(CC|BCC)"
+color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
+color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
+color body green default "\`[^\`]*\`" # Green text between ` and `
+color body brightblue default "^# \.*" # Headings as bold blue
+color body brightcyan default "^## \.*" # Subheadings as bold cyan
+color body brightgreen default "^### \.*" # Subsubheadings as bold green
+color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
+color body brightcyan default "[;:][-o][)/(|]" # emoticons
+color body brightcyan default "[;:][)(|]" # emoticons
+color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
+color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
+color body red default "(BAD signature)"
+color body cyan default "(Good signature)"
+color body brightblack default "^gpg: Good signature .*"
+color body brightyellow default "^gpg: "
+color body brightyellow red "^gpg: BAD signature from.*"
+mono body bold "^gpg: Good signature"
+mono body bold "^gpg: BAD signature from.*"
+color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"
diff --git a/.config/neomutt/mailcap b/.config/neomutt/mailcap
new file mode 100644
index 0000000..f93be9a
--- /dev/null
+++ b/.config/neomutt/mailcap
@@ -0,0 +1 @@
+text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -collapse_br_tags -dump %s; nametemplate=%s.html; copiousoutput
diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc
new file mode 100644
index 0000000..7739d68
--- /dev/null
+++ b/.config/neomutt/neomuttrc
@@ -0,0 +1,32 @@
+# IMAP folder
+set realname="Andrew Guschin"
+set folder="~/mail/gmail"
+set spoolfile=+Inbox
+mailboxes =Inbox
+set postponed = +[Gmail]/Drafts
+
+set header_cache = "~/.cache/neomutt"
+set mailcap_path = "~/.config/neomutt/mailcap"
+set message_cachedir = "~/.cache/neomutt"
+
+# SMTP
+unset record
+set my_user=`pass Services/mail/gmail1/login`
+set smtp_pass=`pass Services/mail/gmail1/password`
+set smtp_url = "smtps://$my_user@smtp.gmail.com/"
+set ssl_starttls = yes
+
+# config
+set sort = 'reverse-date'
+set date_format="%y/%m/%d %I:%M%p"
+
+auto_view text/html
+
+# rebindings
+bind pager j next-line
+bind pager k previous-line
+bind index,pager,browser \Cd half-down
+bind index,pager,browser \Cu half-up
+bind index,pager R group-reply
+
+source colors.mutt