Clear log message if not mailed
Fixed permission