trying to get mail status script to work