Email Post: Sensory adaptation as optimal resource allocation