all repos — dotfiles @ 4957a235fb16f0929806a5a9978f3d7029a1ce5d

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"