projects
/
mail-count.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
initial commit
[mail-count.git]
/
unread_mail_counts.sh
1
#!/bin/sh
2
# Shouldn't require any GNU utils, but not 100% on that negative lookahead flag
3
mbsync
-c
/
home
/
jcasper
/
.mbsyncrc
-aq
4
find
/
home
/
jcasper
/
mail
/
INBOX
/
-type
f
-not -path
'*/\.*'
-print
\
5
|
grep
-P
'.*U=.*:2,(?!.*S)'
\
6
|
wc
-l