all repos — dotfiles @ old

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"