]> git.vanrenterghem.biz Git - Dotty.git/commitdiff
Add barebones mutt configuration.
authorFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Mon, 9 Sep 2019 14:15:31 +0000 (22:15 +0800)
committerFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Mon, 9 Sep 2019 14:15:31 +0000 (22:15 +0800)
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
mutt/.config/mutt/mutt.account.biz [new file with mode: 0644]
mutt/.config/mutt/mutt.account.io [new file with mode: 0644]
mutt/.config/mutt/muttrc [new file with mode: 0644]

index 6ff165ccece25e329b3c988b2411704edef774b6..66128d615fbea158505cbd579fa9cdb71e664d47 100644 (file)
@@ -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 (file)
index 0000000..fc807ff
--- /dev/null
@@ -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 (file)
index 0000000..ea7ddc3
--- /dev/null
@@ -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 (file)
index 0000000..87a341b
--- /dev/null
@@ -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