Mail-CLI-dotfiles/mail/.notmuch/hooks/pre-new

11 lines
224 B
Bash
Executable File

#!/bin/sh
notmuch tag -unread tag:unread not tag:inbox
mbsync -a -L
#msg=$(mbsync -a -L 2>&1)
#echo "$msg";
#
#if [ 0 -ne $? ]; then
# notify-send -u critical -i "applications-email-panel" "Failed Mail fetch" "$msg";
#fi