Email Record: Learning to perceive and act by trial and error