Skip to content

Instantly share code, notes, and snippets.

@erickr
Created February 5, 2012 20:37
Show Gist options
  • Save erickr/1747823 to your computer and use it in GitHub Desktop.
Save erickr/1747823 to your computer and use it in GitHub Desktop.
Tracking mail tasks with munin
#!/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