Hi there,
here's mine:

#!/bin/sh
report=$(maildirtree -s ~/.maildir | tail -n1)
if [[ ! -z $report ]]
  then
    echo $(echo $report | sed 's/Unread\ messages in://') "|"
fi

The output looks like: "dwm, idm, mutt, wmii |" and is
echoed to dwm. Maildirtree has it's home here:
http://triplehelix.org/~joshk/maildirtree

I've got the feeling that it may be not really good on
resources, but it works.

-- 
René Wilhelm

Reply via email to