summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <chaffinach+git@protonmail.ch>2022-05-09 23:29:05 +0100
committerMatthew Lemon <chaffinach+git@protonmail.ch>2022-05-09 23:29:05 +0100
commitd87281f8d8847106335099528335370c48f874c9 (patch)
tree55a201a633b4674944e196bab25468fc578ca597
parent71f16d33652956541e0db0878e8db7d0d5f2e859 (diff)
bunch more mutt config
-rw-r--r--mutt2022/colours1
-rw-r--r--mutt2022/mailboxes3
-rw-r--r--muttrc_fastmail_may2263
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~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "ma
# Sync email
macro index O "<shell-escape>mbsync fastmailchannel <enter>" "run offlineimap to sync all mail"
+
+# update notmuch
+macro index V "<shell-escape>notmuch new<enter>"
+macro index K "<shell-escape>notmuch tag +inbox +unread -new -- tag:new<enter>"
+
# macro index O "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail"
# macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "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 <return> view-mailcap
-# open links
-macro pager \Cu "|urlview<enter>" "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 "<limit>all\n" "show all messages (undo limit)"
# get an email from mutt to taskwarrior
macro index T "<pipe-message>mutt2task<enter> <move-message>+matt-matthewlemon.com/INBOX.Archive<enter>"
-# Handle searching using notmuch (see Steve Losh article)
-# this doesn't work on linux so using another macro index S "<enter-command>unset wait_key<enter><shell-escape>mutt-notmuch-py.py ~/.mail/temporary/search<enter><change-folder-readonly>+temporary/search<enter>" "search mail (using notmuch)"
-
-
-#new notmuch-mutt for linux
-
-macro index <F8> \
-"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
-<shell-escape>notmuch-mutt -r --prompt search<enter>\
-<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
-<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
- "notmuch: search mail"
-
-macro index <F9> \
-"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
-<pipe-message>notmuch-mutt -r thread<enter>\
-<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
-<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
- "notmuch: reconstruct thread"
-
-macro index <F6> \
-"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
-<pipe-message>notmuch-mutt tag -- -inbox<enter>\
-<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
- "notmuch: remove message from inbox"
-
-
-# old Losh OSX-based orientation
-#macro index <F8> "<enter-command>unset wait_key<enter><shell-escape>/usr/bin/notmuch-mutt --prompt search<enter><change-folder-readonly>~/.cache/mutt_results<enter>" "search mail (using notmuch)"
-#macro index <F9> "<enter-command>unset wait_key<enter><pipe-message>/usr/bin/notmuch-mutt thread<enter><change-folder-readonly>~/.cache/mutt_results<enter><enter-command>set wait_key<enter>" "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