From e68619973482c8311829b6b0622dddcb949105b4 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 23 Jan 2021 10:25:02 +0100 Subject: email conf --- .mbsyncrc | 23 ------------ mutt/.mbsyncrc | 23 ++++++++++++ mutt/.neomutt/colors.muttrc | 82 ++++++++++++++++++++++++++++++++++++++++++ mutt/.neomutt/mailcap | 3 ++ mutt/.neomuttrc | 86 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 194 insertions(+), 23 deletions(-) delete mode 100644 .mbsyncrc create mode 100644 mutt/.mbsyncrc create mode 100644 mutt/.neomutt/colors.muttrc create mode 100644 mutt/.neomutt/mailcap create mode 100644 mutt/.neomuttrc diff --git a/.mbsyncrc b/.mbsyncrc deleted file mode 100644 index 26aee4c..0000000 --- a/.mbsyncrc +++ /dev/null @@ -1,23 +0,0 @@ -IMAPStore santo@dcariotti.me-remote -# Address to connect to -Host -Port -User -Pass -SSLType STARTTLS -AuthMechs LOGIN - -MaildirStore -local -Subfolders Verbatim -Path ~/.mail// -INBOX ~/.mail//INBOX -Flatten . - -Channel -Master :-remote: -Slave :-local: -Patterns INBOX Drafts Sent Trash -SyncState * -Create Both -Expunge Both -MaxMessages 0 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 +Port +User +Pass +SSLType STARTTLS +AuthMechs LOGIN + +MaildirStore -local +Subfolders Verbatim +Path ~/.mail// +INBOX ~/.mail//INBOX +Flatten . + +Channel +Master :-remote: +Slave :-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 "[;:]-*[)>( /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 = "" +set use_from = yes +set envelope_from = yes + +set smtp_url = "smtp://@:/" +set smtp_pass = "" + +set imap_user = "" +set imap_pass = "" + +set folder = "~/.mail/" + +set ssl_force_tls = yes +set sendmail = "msmtp -a " +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 "=INBOX" "go to inbox" +macro index,pager gs "=Sent" "go to record" +macro index,pager gd "=Drafts" "go to drafts" +macro index,pager gt "=Trash" "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 "mbsync -V " "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 "html" + +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 + -- cgit v1.2.3-18-g5258