projects
/
mail-count.git
/ blame_incremental
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(non-incremental) |
history
|
HEAD
initial commit
[mail-count.git]
/
unread_mail_counts.sh
This page requires JavaScript to run. Use
this page
instead.
... / ...
Commit
Line
Data
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