# Macros
# Force offlineimap to refresh in the background
-macro index,pager $ "<sync-mailbox><shell-escape>offlineimap -c ~/.mutt/offlineimaprc -k Repository_Remote:remotepass=$my_msmtp_pass<enter><sync-mailbox>" "Force refresh"
+macro index,pager $ "<sync-mailbox><shell-escape>offlineimap -c ~/.mutt/offlineimaprc -k Repository_Remote:remotepass=$my_msmtp_pass &<enter>" "Force refresh"
# Move all the mailing lists to the appropriate folder
macro index,pager \CT "\
<tag-pattern>~C vim@vim.org | ~C vim_use<enter><tag-prefix-cond><save-message>=vim<enter><end-cond>\
<tag-pattern>~C mutt-users@mutt.org<enter><tag-prefix-cond><save-message>=mutt<enter><end-cond>\
<sync-mailbox>" "Clean up mailing lists"
+#Scoring mechanism to pin emails
+unscore *
+score ~A 0
+score ~F 1
+macro index \CP "<flag-message><enter-command>unscore *<enter><enter-command>score ~A 0<enter><enter-command>score ~F 1<enter>" "toggle pin"
+#set index_format="%1N %4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"
+
+
# Folders
set mbox_type=Maildir
set folder=~/.mutt/mail/ # Local mailbox
set certificate_file=~/.mutt/certs
set imap_check_subscribed=yes
#set sleep_time=0
-#set mail_check=5
+set mail_check=1
source ~/.mutt/mailboxes # Generated by offlineimap
#View
unset wait_key
unset markers
-set sort_browser=reverse-date
-set sort_aux=reverse-last-date-received
+set sort_browser=alpha
+set sort=reverse-score
+set sort_aux=reverse-date
set editor="vim"
-set duplicate_threads = yes
+set duplicate_threads=yes
auto_view text/html
#Pager
set pager_index_lines=20
color index brightyellow default ~N# New
color index blue default ~T# Tagged
color index red default ~D# Deleted
+color index brightblue default ~F
#Crypto
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"