all repos — dotfiles @ 694b92e8797f094c3413e8bcc13b68fe5dc39cb2

my *nix dotfiles

bin/mailsync (view raw)

 1#!/bin/sh
 2# mailsync: sync email using mbsync and notify on new mail
 3
 4mbsync -qa &>/dev/null
 5
 6new="$HOME/mail/personal/Inbox/new/"
 7count="$(find $new -type f | wc -l)"
 8
 9[[ "$count" -gt 0 ]] &&
10    printf 'SEC:5\tTAG:mail\tMail\t%s new mail\n' "$count" > "$XNOTIFY_FIFO"