Find a better way to determine unread mail status

My current bodge is a shell script that abuses finger.

There are better ways.

There is some commented out code in the session library to do it, but it needs going over.