From dcaf93ab58441a6e324fe07a7a4859bba522e1c2 Mon Sep 17 00:00:00 2001 From: Frederik Vanrenterghem Date: Mon, 9 Sep 2019 22:15:31 +0800 Subject: [PATCH] Add barebones mutt configuration. Include neomutt's sidebar. Support io and biz domains for reading and sending. Set envelope_from on msmtp for io domain for now. --- msmtp/.config/msmtp/config | 1 + mutt/.config/mutt/mutt.account.biz | 9 +++++++++ mutt/.config/mutt/mutt.account.io | 8 ++++++++ mutt/.config/mutt/muttrc | 16 ++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 mutt/.config/mutt/mutt.account.biz create mode 100644 mutt/.config/mutt/mutt.account.io create mode 100644 mutt/.config/mutt/muttrc diff --git a/msmtp/.config/msmtp/config b/msmtp/.config/msmtp/config index 6ff165c..66128d6 100644 --- a/msmtp/.config/msmtp/config +++ b/msmtp/.config/msmtp/config @@ -14,6 +14,7 @@ passwordeval gpg --no-tty -q -d ~/Documents/paswoorden/frederik@vanrenterghem.bi account io host mail.vanrenterghem.io +from frederik@vanrenterghem.io tls on tls_starttls on tls_certcheck off diff --git a/mutt/.config/mutt/mutt.account.biz b/mutt/.config/mutt/mutt.account.biz new file mode 100644 index 0000000..fc807ff --- /dev/null +++ b/mutt/.config/mutt/mutt.account.biz @@ -0,0 +1,9 @@ +set mbox_type=Maildir +set header_cache=~/.cache/mutt +# Gmail saves sent mail automatically, so don't cause duplicates by recording it through mutt too +unset record +set from = frederik@vanrenterghem.biz +set use_from = yes +set sendmail = "/usr/bin/msmtp -a biz" + +set spoolfile = "+biz/Inbox" diff --git a/mutt/.config/mutt/mutt.account.io b/mutt/.config/mutt/mutt.account.io new file mode 100644 index 0000000..ea7ddc3 --- /dev/null +++ b/mutt/.config/mutt/mutt.account.io @@ -0,0 +1,8 @@ +set mbox_type=Maildir +set header_cache=~/.cache/mutt +set record = +io/sent +set from = frederik@vanrenterghem.io +set use_from = yes +set sendmail = "/usr/bin/msmtp -a io" + +set spoolfile = "+io/Inbox" diff --git a/mutt/.config/mutt/muttrc b/mutt/.config/mutt/muttrc new file mode 100644 index 0000000..87a341b --- /dev/null +++ b/mutt/.config/mutt/muttrc @@ -0,0 +1,16 @@ +set folder = ~/.mail/ + +set editor = vim + +# Configure neomutt sidebar +set sidebar_visible = yes +mailboxes = +biz/Inbox = +io/Inbox +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 default account +source ~/.config/mutt/mutt.account.biz + +folder-hook io/* source ~/.config/mutt/mutt.account.io +folder-hook biz/* source ~/.config/mutt/mutt.account.biz -- 2.39.5