From d87281f8d8847106335099528335370c48f874c9 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 9 May 2022 23:29:05 +0100 Subject: bunch more mutt config --- mutt2022/colours | 1 + mutt2022/mailboxes | 3 +++ muttrc_fastmail_may22 | 63 ++++++++++++++------------------------------------- 3 files changed, 21 insertions(+), 46 deletions(-) diff --git a/mutt2022/colours b/mutt2022/colours index 2f57890..4c8fabf 100644 --- a/mutt2022/colours +++ b/mutt2022/colours @@ -12,6 +12,7 @@ color index brightred black ~D color index magenta default ~Q # replied-to #color index black yellow ~U color index red default ~T +color sidebar_highlight color221 color233 mono index bold ~N mono index bold ~F mono index bold ~T diff --git a/mutt2022/mailboxes b/mutt2022/mailboxes index 9788d31..3c5dcd1 100644 --- a/mutt2022/mailboxes +++ b/mutt2022/mailboxes @@ -1,5 +1,8 @@ mailboxes "+INBOX" "+Archive" "+Drafts" "+Sent" "+Scans" "+Trash" + virtual-mailboxes "from Jo" "notmuch://?query=from:joanna" virtual-mailboxes "Harvey" "notmuch://?query=harvey" virtual-mailboxes "nm-sent" "notmuch://?query=tag:sent" virtual-mailboxes "nm-inbox" "notmuch://?query=tag:inbox" +virtual-mailboxes "emailed Tasks" "notmuch://?query=to:matthewlemon+task@protonmail.com or to:madmin+task@rushpost.com" +virtual-mailboxes "last week" "notmuch://?query=date:7days..today" diff --git a/muttrc_fastmail_may22 b/muttrc_fastmail_may22 index ad8abf1..6d33cb8 100644 --- a/muttrc_fastmail_may22 +++ b/muttrc_fastmail_may22 @@ -72,6 +72,10 @@ set spoolfile = "+INBOX" # Mailboxes to show in the sidebar. subscribe announce@openbsd.org +subscribe misc@openbsd.org + +# groups +alternates -group me '^matt@matthewlemon.com$' '^matthew.lemon@gmail.com$' '^matthew.lemon104@mod.gov.uk$' # named-mailboxes Inbox +INBOX \ @@ -88,12 +92,12 @@ subscribe announce@openbsd.org #mailboxes +INBOX +INBOX.Archive +INBOX.Sent\ Items +INBOX.Drafts +INBOX.Trash # Other special folders. -set mbox = "+INBOX.Archive" -set postponed = "+INBOX.Drafts" +set mbox = "+Archive" +set postponed = "+Drafts" # Index View Options --------------------------------- -set date_format = "%d-%m-%Y" -set index_format = "[%Z] %B %D %-20.20F %s" +set date_format = "%d-%m-%Y %H:%M " +set index_format = "%4C [%Z] %B %D %-20.20F %s" set sort = threads # like gmail set sort_aux = reverse-last-date-received # like gmail set uncollapse_jump # don't collapse on an unread message @@ -134,6 +138,11 @@ macro index \Cr "T~UN." "ma # Sync email macro index O "mbsync fastmailchannel " "run offlineimap to sync all mail" + +# update notmuch +macro index V "notmuch new" +macro index K "notmuch tag +inbox +unread -new -- tag:new" + # macro index O "offlineimap" "run offlineimap to sync all mail" # macro index o "offlineimap -qf INBOX" "run offlineimap to sync inbox" @@ -160,8 +169,6 @@ alternative_order text/plain text/enriched text/html # fix background colour #color normal white black -# identifies URLs - # Pager Key Bindings --------------------------------- bind pager k previous-line bind pager j next-line @@ -173,16 +180,13 @@ bind pager R group-reply # View attachments properly. bind attach view-mailcap -# open links -macro pager \Cu "|urlview" "call urlview to open links" - # Compose View Options ------------------------------- set realname = "Matthew Lemon" # who am i? set envelope_from # which from? set sig_dashes # dashes before sig set edit_headers # show headers when composing set fast_reply # skip to compose when replying -set askcc # ask for CC: +#set askcc # ask for CC: set fcc_attach # save attachments with the body unset mime_forward # forward attachments as part of body set forward_format = "Fwd: %s" # format of subject when forwarding @@ -196,7 +200,7 @@ set forward_quote # include message in forwards #set editor = "vim" # Use terminal Vim to compose email. set editor = "vim %s" -set from = "matt@matthewlemon.com" +set from = "matt@matthewlemon.com" #set sendmail = "/usr/local/bin/msmtp -a fastmail" # set sendmail_wait = 0 @@ -227,42 +231,11 @@ macro index a "all\n" "show all messages (undo limit)" # get an email from mutt to taskwarrior macro index T "mutt2task +matt-matthewlemon.com/INBOX.Archive" -# Handle searching using notmuch (see Steve Losh article) -# this doesn't work on linux so using another macro index S "unset wait_keymutt-notmuch-py.py ~/.mail/temporary/search+temporary/search" "search mail (using notmuch)" - - -#new notmuch-mutt for linux - -macro index \ -"set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ -notmuch-mutt -r --prompt search\ -`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ -set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ - "notmuch: search mail" - -macro index \ -"set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ -notmuch-mutt -r thread\ -`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ -set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ - "notmuch: reconstruct thread" - -macro index \ -"set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ -notmuch-mutt tag -- -inbox\ -set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ - "notmuch: remove message from inbox" - - -# old Losh OSX-based orientation -#macro index "unset wait_key/usr/bin/notmuch-mutt --prompt search~/.cache/mutt_results" "search mail (using notmuch)" -#macro index "unset wait_key/usr/bin/notmuch-mutt thread~/.cache/mutt_resultsset wait_key" "search and reconstruct owning thread (using notmuch)" -# #source ~/.mutt/gpg.rc # Use GPG #source ~/.mutt/auto_views # Define auto_views. source ~/.mutt/aliases # Load in my aliases. source ~/.mutt/subscriptions # Define the list of subscribed mailing lists. -#source ~/.mutt/mailboxes # Define the list of folders that receive mail. +source ~/.mutt/mailboxes # Define the list of folders that receive mail. #source ~/.mutt/headers # Configure header display. #source ~/.mutt/folder-hooks # Define folder-hooks. #source ~/.mutt/save-hooks # Define save-hooks. @@ -278,11 +251,9 @@ auto_view text/html # example notmuch config: set virtual_spoolfile=yes -source ~/.mutt/mailboxes - # -------------------------------------------------------------------------- -# VARIABLES – shown with their default values +# notmuch VARIABLES – shown with their default values # -------------------------------------------------------------------------- # This variable specifies notmuch query limit. set nm_db_limit = 0 -- cgit v1.2.3