conky: Update and more files
[shutils.git] / dotfiles / conky / showmails.sh
diff --git a/dotfiles/conky/showmails.sh b/dotfiles/conky/showmails.sh
new file mode 100755 (executable)
index 0000000..a530787
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for f in `find $HOME/.smailq/data -name "*.eml"`; do 
+       to=`grep To: $f | tail -c +5 | head -c 15`
+       subj=`grep Subject: $f | tail -c +10`
+       echo "$to: $subj"
+done