rptailf - rohrpost - A commandline mail client to change the world as we see it.
 (HTM) git clone git://r-36.net/rohrpost
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       rptailf (246B)
       ---
            1 #!/bin/sh
            2 
            3 if [ -z "$1" ];
            4 then
            5         printf "usage: %s folder\n" "$(basename $0)" 2>&1
            6         exit 1
            7 fi
            8 
            9 folder="$1"
           10 
           11 while true;
           12 do
           13         num=$(rpinc ${folder} | tail -n 1 | cut -f 3)
           14 
           15         if [ $num -gt 0 ];
           16         then
           17                 PAGER= rpview -m $folder u
           18         fi
           19         sleep 60
           20 done
           21