]> git.cameronkatri.com Git - dotfiles.git/commitdiff
Major mail changes
authorCameron Katri <me@cameronkatri.com>
Thu, 29 Jul 2021 03:54:31 +0000 (23:54 -0400)
committerCameron Katri <me@cameronkatri.com>
Thu, 29 Jul 2021 03:54:31 +0000 (23:54 -0400)
.config/neomutt/mailcap [new file with mode: 0644]
.config/neomutt/neomuttrc
.local/bin/update-mail [new file with mode: 0755]
.tmux.conf [new file with mode: 0644]
.zshrc

diff --git a/.config/neomutt/mailcap b/.config/neomutt/mailcap
new file mode 100644 (file)
index 0000000..b5b5c19
--- /dev/null
@@ -0,0 +1 @@
+text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput
index 960fb0c7359363a8266278fb76f7ba2eed10e2ae..3bc693ecf4f0494cad2fbce88cc2d35cec86e5fb 100644 (file)
 source ~/.config/neomutt/passwords.mutt
 source ~/.config/neomutt/nord.mutt
 
+timeout-hook "echo `~/.local/bin/update-mail`"
+startup-hook "echo `~/.local/bin/update-mail -L`"
+shutdown-hook "echo `~/.local/bin/update-mail`"
+
 set smtp_authenticators="plain"
 
 set from="Cameron Katri <me@cameronkatri.com>"
 set edit_headers=yes
 
-set spoolfile=+INBOX
-set record="=Sent"
-set postponed="=Drafts"
+set mbox_type="Maildir"
+set spoolfile="+INBOX"
+set record="+Sent"
+set postponed="+Drafts"
+set trash="+Trash"
+
+mailboxes $spoolfile $record $postponed $trash
+mailboxes +Junk +Starred
 
-set imap_check_subscribed
-#set sort=reverse-date-sent
 set sort=threads
 
-bind index G imap-fetch-mail
+macro index G "<shell-escape>mbsync -a<enter>" "sync email"
+
+set header_cache = "~/.cache/neomutt/headers"
+set message_cachedir = "~/.cache/neomutt/bodies"
 
 set sidebar_visible
-set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
+set sidebar_format = "%B%* [%N]%*"
+set sidebar_new_mail_only = no
+set sidebar_non_empty_mailbox_only = yes
 set mail_check_stats
 bind index,pager \CP sidebar-prev
 bind index,pager \CN sidebar-next
@@ -52,6 +64,7 @@ set crypt_autosign
 set crypt_use_gpgme
 set pgp_default_key="7D3B36CEA40FCC2181FB6DCDBAFFD97826540F1C"
 
-set trash="+Trash"
+auto_view text/html
+set mailcap_path = "~/.config/neomutt/mailcap"
 
 # vim: syntax=neomuttrc
diff --git a/.local/bin/update-mail b/.local/bin/update-mail
new file mode 100755 (executable)
index 0000000..df56fdd
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+tmux new-session -d mbsync -aq $@
+exit 0
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644 (file)
index 0000000..1711f7a
--- /dev/null
@@ -0,0 +1,3 @@
+set -g default-terminal tmux-256color
+set -g mouse on
+run-shell "~/.tmux/themes/nord-tmux/nord.tmux"
diff --git a/.zshrc b/.zshrc
index 36c63ce27da10fed86a332c7b8c1d70c05b9caf9..faa5cd6339978323901e3909a77c8bf6ffe0408e 100755 (executable)
--- a/.zshrc
+++ b/.zshrc
@@ -43,7 +43,7 @@ alias icat="kitty +kitten icat"
 alias fuzz="fzf --preview 'bat --style=numbers,changes --color=always --line-range :500 {}' --preview-window=right:66%"
 alias sort='LC_ALL=C sort'
 # https://reviews.freebsd.org/D30545
-alias diff='LC_ALL=C TZ=UTC diff --color=auto'
+alias diff='LC_ALL=C TZ=UTC diff'
 alias ls='ls --color=auto -F'
 alias diffstat='diffstat -C'
 export BAT_THEME="Nord"
@@ -68,7 +68,7 @@ setxkbmap -option compose:rctrl
 export GPG_TTY=$(tty)
 
 # Completion for kitty
-kitty + complete setup zsh | source /dev/stdin
+#kitty + complete setup zsh | source /dev/stdin
 
 export LESS='-FiMRx2$z-4$Dd+c$Du+g'