From: Mart Lubbers Date: Thu, 13 Mar 2014 12:10:10 +0000 (+0100) Subject: make better muttrc, include pinning of mails X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=951aa062815896624ad19797fd70ab6c5b4752d3;p=dotfiles.git make better muttrc, include pinning of mails --- diff --git a/muttrc b/muttrc index 2a0efbc..298c8f7 100644 --- a/muttrc +++ b/muttrc @@ -9,7 +9,7 @@ set my_hdr="X-PGP-Key: http://www.martlubbers.net/mart@martlubbers.net.asc" # Macros # Force offlineimap to refresh in the background -macro index,pager $ "offlineimap -c ~/.mutt/offlineimaprc -k Repository_Remote:remotepass=$my_msmtp_pass" "Force refresh" +macro index,pager $ "offlineimap -c ~/.mutt/offlineimaprc -k Repository_Remote:remotepass=$my_msmtp_pass &" "Force refresh" # Move all the mailing lists to the appropriate folder macro index,pager \CT "\ ~C vim@vim.org | ~C vim_use=vim\ @@ -17,6 +17,14 @@ macro index,pager \CT "\ ~C mutt-users@mutt.org=mutt\ " "Clean up mailing lists" +#Scoring mechanism to pin emails +unscore * +score ~A 0 +score ~F 1 +macro index \CP "unscore *score ~A 0score ~F 1" "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 @@ -28,16 +36,17 @@ set mask="!^\\.[^.]" 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 @@ -104,6 +113,7 @@ color index green default ~p# To me 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"