From 40bd1a26eba933f00297e91e381654f693dcf385 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 12 Dec 2015 12:33:46 +0000 Subject: Update mail configuration --- .mutt/muttrc | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to '.mutt/muttrc') diff --git a/.mutt/muttrc b/.mutt/muttrc index 3918c3a..d9f1bc8 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -12,11 +12,14 @@ set tmpdir = ~/.mutt/temp source ~/.mutt/crypto source ~/.mutt/alias source ~/.mutt/mailboxes +source ~/.mutt/id_main # General information -set from = "urbain.p.vaes@gmail.com" set realname = "Urbain Vaes" +set reverse_alias +set sort = reverse-date set weed +unset markers # Encryption set crypt_autosign = no @@ -27,13 +30,6 @@ set pgp_sign_as = 716064C0 set pgp_use_gpg_agent = yes set pgp_timeout = 3600 - -# Maildirs -set spoolfile = "+Main/Main" -set record = "+Main/Sent" -set postponed = "+Main/Drafts" -set trash = "+Main/Bin" - # Sidebar set sidebar_width=26 set sidebar_visible = yes @@ -50,11 +46,6 @@ set quit = yes set pager_stop set pager_index_lines = 10 -# Misc -unset markers -set reverse_alias -set sort = reverse-date - # HTML messages auto_view text/html alternative_order text/plain text/enriched text/html @@ -63,13 +54,21 @@ alternative_order text/plain text/enriched text/html set editor="vim --noplugin" set include=yes -# Program to send mails -set sendmail="/usr/bin/msmtp" +# Macros +macro index gm " +Main/Main" +macro index gp " +Private/Private" +macro index gi " +Informal/Informal" +macro index gw " +Imperial/Imperial" +macro index gs " $record" +macro index gd " $postponed" +macro index gb " $trash" # Key bindings bind index,pager \Cf next-page bind index,pager \Cb previous-page +bind index,pager \Cu next-unread-mailbox + bind index gg first-entry bind index G last-entry bind index i flag-message @@ -80,13 +79,16 @@ bind pager j next-entry bind pager k previous-entry bind pager R group-reply +# Hooks +send-hook '~t .*@imperial\.ac\.uk$' 'source ~/.mutt/id_imperial' +reply-hook '~t .*@imperial\.ac\.uk$' 'source ~/.mutt/id_imperial' + +folder-hook 'Main*' 'source ~/.mutt/id_main' +folder-hook 'Informal*' 'source ~/.mutt/id_informal' +folder-hook 'Private*' 'source ~/.mutt/id_private' +folder-hook 'Imperial*' 'source ~/.mutt/id_imperial' + # Source mutt solarized `[ "$COLORSCHEME" = "light" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-light-16.muttrc || echo set` `[ "$COLORSCHEME" = "dark" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-dark-16.muttrc || echo set` `[ "$COLORSCHEME" = "default" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-dark-16.muttrc || echo set` - -# Hooks -reply-hook . 'source ~/.mutt/id_gmail' -send-hook . 'source ~/.mutt/id_gmail' -send-hook '~t .*@imperial\.ac\.uk$' 'source ~/.mutt/id_imperial' -reply-hook '~t .*@imperial\.ac\.uk$' 'source ~/.mutt/id_imperial' -- cgit v1.2.3