dotfiles

my shiny new dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

checkmail (209B)


      1 #!/bin/sh
      2 
      3 [ $# -lt 1 ] && echo "error: invalid usage: requires an email as an argument" && exit 1
      4 
      5 mail_address="$1"
      6 mail_dir="$XDG_DATA_HOME/mail/$mail_address/INBOX/new"
      7 
      8 echo "$(ls $mail_dir | wc -l) "