rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | README | LICENSE

rpnext (241B)


      1 #!/bin/sh
      2 
      3 cur=$(rpcur)
      4 if [ $? -gt 0 ];
      5 then
      6 	rpcur 1
      7 	cur=1
      8 fi
      9 cursel=$(rpsel)
     10 max=$(rpinc $cursel | tail -n 1 | awk '{print $3}')
     11 
     12 cur=$(($cur + 1))
     13 if [ $cur -gt $max ];
     14 then
     15 	echo "We are at the last element."
     16 	exit 1
     17 fi
     18 
     19 rpview $cur 
     20