initial commit
[mail-count.git] / unread_mail_counts.sh
... / ...
CommitLineData
1#!/bin/sh
2# Shouldn't require any GNU utils, but not 100% on that negative lookahead flag
3mbsync -c /home/jcasper/.mbsyncrc -aq
4find /home/jcasper/mail/INBOX/ -type f -not -path '*/\.*' -print \
5 | grep -P '.*U=.*:2,(?!.*S)' \
6 | wc -l