X-Git-Url: https://git.sthu.org/?p=shutils.git;a=blobdiff_plain;f=dotfiles%2Fconky%2Fshowmails.sh;fp=dotfiles%2Fconky%2Fshowmails.sh;h=a530787d60a633d162827cd73fb674daca948515;hp=0000000000000000000000000000000000000000;hb=e5a6e77d71096cff4b5d1f4b39b76154842af40f;hpb=aed683d1d5066a1ecfa529973bb887b08dfcb893 diff --git a/dotfiles/conky/showmails.sh b/dotfiles/conky/showmails.sh new file mode 100755 index 0000000..a530787 --- /dev/null +++ b/dotfiles/conky/showmails.sh @@ -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