Created
February 5, 2012 20:37
-
-
Save erickr/1747823 to your computer and use it in GitHub Desktop.
Tracking mail tasks with munin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "todo.label TODO" | |
echo "todowork.label TODO WORK" | |
echo -n "todo.value " | |
grep -s -l -H "private-domain.se" /webmail/8/4/84deda69dc38c4a39443e9b7a8230018/Maildir/cur/* | grep '[,+]S[a-f]*[h-z]*g[a-f]*[h-z]*$' | wc -l | |
echo -n "todowork.value " | |
grep -s -l -H "work-domain.se" /webmail/8/4/84deda69dc38c4a39443e9b7a8230018/Maildir/cur/* | grep '[,+]S[a-f]*[h-z]*g[a-f]*[h-z]*$' | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment