summaryrefslogtreecommitdiff
path: root/mutt
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-01-23 10:25:02 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-01-23 10:25:13 +0100
commite68619973482c8311829b6b0622dddcb949105b4 (patch)
tree5f95d18db1c6d06a124b2a318f2f8e84bfee0bad /mutt
parent9b6262f23887f00fea9f667ebfe8d0635fd80871 (diff)
email conf
Diffstat (limited to 'mutt')
-rw-r--r--mutt/.mbsyncrc23
-rw-r--r--mutt/.neomutt/colors.muttrc82
-rw-r--r--mutt/.neomutt/mailcap3
-rw-r--r--mutt/.neomuttrc86
4 files changed, 194 insertions, 0 deletions
diff --git a/mutt/.mbsyncrc b/mutt/.mbsyncrc
new file mode 100644
index 0000000..26aee4c
--- /dev/null
+++ b/mutt/.mbsyncrc
@@ -0,0 +1,23 @@
+IMAPStore santo@dcariotti.me-remote
+# Address to connect to
+Host <host>
+Port <port>
+User <emil>
+Pass <password>
+SSLType STARTTLS
+AuthMechs LOGIN
+
+MaildirStore <email>-local
+Subfolders Verbatim
+Path ~/.mail/<email>/
+INBOX ~/.mail/<email>/INBOX
+Flatten .
+
+Channel <email>
+Master :<email>-remote:
+Slave :<email>-local:
+Patterns INBOX Drafts Sent Trash
+SyncState *
+Create Both
+Expunge Both
+MaxMessages 0
diff --git a/mutt/.neomutt/colors.muttrc b/mutt/.neomutt/colors.muttrc
new file mode 100644
index 0000000..0b5b778
--- /dev/null
+++ b/mutt/.neomutt/colors.muttrc
@@ -0,0 +1,82 @@
+# 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 color208
+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"
+
diff --git a/mutt/.neomutt/mailcap b/mutt/.neomutt/mailcap
new file mode 100644
index 0000000..dea866b
--- /dev/null
+++ b/mutt/.neomutt/mailcap
@@ -0,0 +1,3 @@
+text/html; xdg-open %s &> /dev/null &; nametemplate=%s.html
+application/*; xdg-open %s &> /dev/null &;
+image/*; xdg-open %s &> /dev/null &;
diff --git a/mutt/.neomuttrc b/mutt/.neomuttrc
new file mode 100644
index 0000000..d28af36
--- /dev/null
+++ b/mutt/.neomuttrc
@@ -0,0 +1,86 @@
+set realname = "Santo Cariotti"
+set from = "<email>"
+set use_from = yes
+set envelope_from = yes
+
+set smtp_url = "smtp://<email>@<host>:<port>/"
+set smtp_pass = "<pass>"
+
+set imap_user = "<email>"
+set imap_pass = "<pass>"
+
+set folder = "~/.mail/<email>"
+
+set ssl_force_tls = yes
+set sendmail = "msmtp -a <email>"
+set mbox_type = Maildir
+set spoolfile = +INBOX
+set record = +Sent
+set postponed = +Drafts
+set trash = +Trash
+mailboxes =INBOX =Sent =Drafts =Trash
+
+set editor = "vim"
+set charset = "utf-8"
+
+set sidebar_visible
+set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
+set mail_check_stats
+
+
+# cache settings
+set header_cache = ~/.cache/mutt
+set message_cachedir = "~/.cache/mutt/message_cache"
+
+
+# navigation settings
+bind index,pager g noop
+macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
+macro index,pager gs "<change-folder>=Sent<enter>" "go to record"
+macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
+macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
+
+set sidebar_visible = yes
+set sidebar_width = 30
+set sidebar_new_mail_only = no
+set sidebar_folder_indent
+set sidebar_indent_string = ' '
+
+bind index,pager K sidebar-prev
+bind index,pager J sidebar-next
+bind index,pager L sidebar-open
+bind index,pager B sidebar-toggle-visible
+
+# synchronization settings ['s' to sync]
+macro index S "<shell-escape>mbsync -V <email><enter>" "sync email"
+
+bind pager j next-line
+bind pager k previous-line
+bind pager h previous-entry
+bind pager l next-entry
+
+bind pager gg top
+bind pager G bottom
+bind index gg first-entry
+bind index G last-entry
+
+bind index,pager V noop
+macro index,pager V "<view-attachments><search>html<enter><view-mailcap><exit>"
+
+bind generic,index,pager / search
+
+## Other Settings
+set mail_check_stats
+set sort = 'reverse-date'
+set markers = no # Disables the `+` displayed at line wraps
+set mime_forward = yes # attachments are forwarded with mail
+set fast_reply # skip to compose when replying
+set fcc_attach # save attachments with the body
+set forward_format = "Fwd: %s" # format of subject when forwarding
+
+set mailcap_path = ~/.neomutt/mailcap
+
+color indicator black yellow
+
+source ~/.neomutt/colors.muttrc
+