summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bracht Laumann Jespersen <t@laumann.xyz>2022-03-15 13:22:13 +0100
committerThomas Bracht Laumann Jespersen <t@laumann.xyz>2022-03-15 13:22:13 +0100
commit3676db5c1dfd24c5e136b4998bcd39bbb4a8e947 (patch)
tree14f4863a3cded84f4294dd83b3654a8aa4b91ee4
parent3293786f88d4d00a88da866a72684aa298c50b6d (diff)
neomutt: virtual-mailboxes and checkmail.sh scriptHEADmaster
-rw-r--r--neomutt/config8
-rw-r--r--neomutt/hldiff.awk11
2 files changed, 15 insertions, 4 deletions
diff --git a/neomutt/config b/neomutt/config
index d0445a4..f286089 100644
--- a/neomutt/config
+++ b/neomutt/config
@@ -15,6 +15,9 @@ set spoolfile=+INBOX
set record=+Sent
mailboxes "+Archive" "+Drafts" "+INBOX" "+Sent" "+Junk" "+Trash"
+virtual-mailboxes "inbox" "notmuch://?query=tag:inbox"
+virtual-mailboxes "kernelnewbies" "notmuch://?query=tag:kernelnewbies"
+virtual-mailboxes "gentoo-bugs" "notmuch://?query=tag:gentoo-bugs"
set sort=threads
set sort_aux=reverse-last-date-received
@@ -40,6 +43,8 @@ source ~/.dotfiles/neomutt/subscriptions
# Macro:
macro index,pager A "<save-message>=Archive<enter><enter>"
+macro index S "<shell-escape>/home/tj/.bin/checkmail.sh 2>&1<enter>" "sync email and run notmuch"
+
# color index_author cyan default '.*'
# color index_size green default
color index_flags brightcyan default '.*'
@@ -60,12 +65,13 @@ set index_format="[%Z] %D %-25.25Fp %@subj_flags@ %s %> %cr"
#color index color247 default ~R
#color status black blue
-
color indicator black lightyellow
color index black default ~N|~O
color index color247 default ~R
color status white blue
+set sidebar_visible = yes
+
# Use utf-8 as send encoding...
set send_charset='utf-8'
diff --git a/neomutt/hldiff.awk b/neomutt/hldiff.awk
index 2f40205..3b68a26 100644
--- a/neomutt/hldiff.awk
+++ b/neomutt/hldiff.awk
@@ -1,9 +1,10 @@
# vim: set ft=awk :
BEGIN {
bright = "\033[1m"
- add = "\033[33m" # yellow
- del = "\033[34m" # blue
+ add = "\033[32m" # yellow
+ del = "\033[31m" # blue
hunk = "\033[1;36m" # cyan
+ quote = "\033[0;34m" # magenta?
reset = "\033[0m"
hit_diff = 0
@@ -22,6 +23,8 @@ BEGIN {
gsub(/-+/, del "&" reset, right)
gsub(/\++/, add "&" reset, right)
print left right
+ } else if ($0 ~ /^>/) {
+ print quote $0 reset
} else {
print $0
}
@@ -29,7 +32,9 @@ BEGIN {
# Strip carriage returns from line
gsub(/\r/, "", $0)
- if ($0 ~ /^-/) {
+ if ($0 ~ /^>/) {
+ print quote $0 reset
+ } else if ($0 ~ /^-/) {
print del $0 reset
} else if ($0 ~ /^\+/) {
print add $0 reset