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
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
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"
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'