From: Frederik Vanrenterghem Date: Wed, 18 Sep 2019 13:19:14 +0000 (+0800) Subject: Add custom headers and sort mails recent on top in mutt. X-Git-Url: http://git.vanrenterghem.biz/Dotty.git/commitdiff_plain/f640792fc9a6daa07f4f672741089a1e076c524c?ds=sidebyside Add custom headers and sort mails recent on top in mutt. --- diff --git a/mutt/.config/mutt/mutt.account.biz b/mutt/.config/mutt/mutt.account.biz index fc807ff..3dd1e3d 100644 --- a/mutt/.config/mutt/mutt.account.biz +++ b/mutt/.config/mutt/mutt.account.biz @@ -7,3 +7,6 @@ set use_from = yes set sendmail = "/usr/bin/msmtp -a biz" set spoolfile = "+biz/Inbox" + +unmy_hdr * +my_hdr X-Accept-Language: nl en fr diff --git a/mutt/.config/mutt/mutt.account.io b/mutt/.config/mutt/mutt.account.io index ea7ddc3..a0dd832 100644 --- a/mutt/.config/mutt/mutt.account.io +++ b/mutt/.config/mutt/mutt.account.io @@ -6,3 +6,10 @@ set use_from = yes set sendmail = "/usr/bin/msmtp -a io" set spoolfile = "+io/Inbox" + +unmy_hdr * +my_hdr X-Accept-Language: nl en fr +my_hdr X-GPG-Key: http://vanrenterghem.biz/publickey.gpg + +send-hook .io/* 'my_hdr X-Uptime: `uptime`' + diff --git a/mutt/.config/mutt/muttrc b/mutt/.config/mutt/muttrc index e445163..1184d90 100644 --- a/mutt/.config/mutt/muttrc +++ b/mutt/.config/mutt/muttrc @@ -17,12 +17,17 @@ 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 +# Sorting mails +set sort = threads +set sort_browser = date +set sort_aux = reverse-last-date-received + # 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 +source ~/.config/mutt/mutt.account.io folder-hook io/* source ~/.config/mutt/mutt.account.io folder-hook biz/* source ~/.config/mutt/mutt.account.biz