From de2fb121850a128b5f4ba0e3a417372e3bb450e2 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 21 May 2022 20:28:41 -0400 Subject: [PATCH] neomutt, isync, msmtp: Add configuration --- src/.config/isync/mbsyncrc | 18 ++++++++ src/.config/msmtp/config | 11 +++++ src/.config/neomutt/colors.muttrc | 70 +++++++++++++++++++++++++++++++ src/.config/neomutt/neomuttrc | 55 ++++++++++++++++++++++++ 4 files changed, 154 insertions(+) create mode 100644 src/.config/isync/mbsyncrc create mode 100644 src/.config/msmtp/config create mode 100644 src/.config/neomutt/colors.muttrc create mode 100644 src/.config/neomutt/neomuttrc diff --git a/src/.config/isync/mbsyncrc b/src/.config/isync/mbsyncrc new file mode 100644 index 0000000..d3e67e5 --- /dev/null +++ b/src/.config/isync/mbsyncrc @@ -0,0 +1,18 @@ +IMAPStore disroot-remote +Host disroot.org +User dogeystamp@disroot.org +PassCmd "pass msg/mail/dogeystamp@disroot.org" +SSLType IMAPS + +MaildirStore disroot-local +SubFolders Verbatim +Path ~/dox/mail/disroot/ +Inbox ~/dox/mail/disroot/Inbox + +Channel disroot +Far :disroot-remote: +Near :disroot-local: +Patterns * +Create Both +Expunge Both +SyncState * diff --git a/src/.config/msmtp/config b/src/.config/msmtp/config new file mode 100644 index 0000000..1bc707f --- /dev/null +++ b/src/.config/msmtp/config @@ -0,0 +1,11 @@ +account mail +host disroot.org +port 587 +protocol smtp +auth on +user dogeystamp@disroot.org +from dogeystamp@disroot.org +tls on +tls_starttls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +passwordeval "pass msg/mail/dogeystamp@disroot.org" diff --git a/src/.config/neomutt/colors.muttrc b/src/.config/neomutt/colors.muttrc new file mode 100644 index 0000000..3f33c49 --- /dev/null +++ b/src/.config/neomutt/colors.muttrc @@ -0,0 +1,70 @@ +# 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 "^( | )*(-|\*) \.*" # 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.*" diff --git a/src/.config/neomutt/neomuttrc b/src/.config/neomutt/neomuttrc new file mode 100644 index 0000000..21f7ccf --- /dev/null +++ b/src/.config/neomutt/neomuttrc @@ -0,0 +1,55 @@ +source ~/.config/neomutt/colors.muttrc + +set folder = ~/dox/mail/disroot/ +set spoolfile = "+Inbox" +set postponed = "+Drafts" +set record = "+Sent" +set trash = "+Trash" +set header_cache = ~/.cache/neomutt/headers +set message_cachedir = ~/.cache/neomutt/bodies +set certificate_file = /etc/ssl/certs/ca-certificates.crt +set tmpdir = .cache/neomutt/tmp + +set wait_key = no +set mbox_type = Maildir +set use_from=yes +set ssl_starttls=yes +set ssl_force_tls=yes + +set editor="nvim" +set rfc2047_parameters = yes +set sleep_time = 0 # Pause 0 seconds for informational messages +set markers = no # Disables the `+` displayed at line wraps +set mark_old = no # Unread mail stay unread until read +set mime_forward = yes # attachments are forwarded with mail +set wait_key = no # mutt won't ask "press key to continue" +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 forward_quote # include message in forwards +set reverse_name # reply as whomever it was to +set include # include message in replies + +set sidebar_visible = yes +set sidebar_width = 20 +set sidebar_short_path = yes +set sidebar_next_new_wrap = yes +set mail_check_stats +set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?' +set charset = "utf-8" + +mailboxes =Inbox +mailboxes =Archive =Sent =Drafts =Junk =Trash + +set sendmail="/usr/bin/msmtp -a mail" + +macro index O "mbsync -c \"$XDG_CONFIG_HOME\"/isync/mbsyncrc disroot " "run offlineimap to sync all mail" +bind index,pager \CP sidebar-prev +# Ctrl-P – Previous Mailbox +bind index,pager \CN sidebar-next +# Ctrl-N – Next Mailbox +bind index,pager \CO sidebar-open +# Ctrl-O – Open Highlighted Mailbox + +set realname = "dogeystamp" +set signature = ~/dox/sig