all repos — dotfiles @ 88374a6fbd1ee95711b88815c078091c34537c40

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"