Include GPG options and have mutt determine sender instead of msmtp.
--- /dev/null
+default-key EA89DD8B41D4C9EDE02437E128A8415654E86F1F
account biz
host smtp.gmail.com
account biz
host smtp.gmail.com
-from frederik@vanrenterghem.biz
tls on
tls_starttls on
tls_certcheck off
tls on
tls_starttls on
tls_certcheck off
account io
host mail.vanrenterghem.io
account io
host mail.vanrenterghem.io
-from frederik@vanrenterghem.io
tls on
tls_starttls on
tls_certcheck off
tls on
tls_starttls on
tls_certcheck off
--- /dev/null
+set pgp_default_key = "BAD1125C62E5E2A9"
+set crypt_use_gpgme = yes
+set crypt_autosign = no
+set crypt_verify_sig = yes
+set crypt_replysign = yes
+set crypt_replyencrypt = yes
+set crypt_replysignencrypted = yes
# Configure neomutt sidebar
set sidebar_visible = yes
# Configure neomutt sidebar
set sidebar_visible = yes
-mailboxes = +biz/Inbox = +io/Inbox
+set sidebar_short_path = yes
+set sidebar_format = "%B %?N?(%N)?%* %S"
+
+mailboxes = "--biz------------"
+mailboxes = +biz/Inbox
+mailboxes = +biz/sent
+mailboxes = "--io-------------"
+mailboxes = +io/Inbox = +io/sent = +io/archive = +io/junk
+
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
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
+# Compose options
+set envelope_from # allow setting who the sender is
+set edit_headers # show headers when composing
+
# 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
# 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
+
+source ~/.config/mutt/mutt.gpg.rc