all repos — dotfiles @ 44dd260faad218bb05171c28e2af0c03cf73cb05

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"