#!/bin/zsh local _new=`ls "$1"/inbox/new | wc -l` local _unread=`ls "$1"/inbox/cur | egrep -v "S$" | wc -l` let _count=$_new+$_unread echo -n $_count