Gravar-mail: Timing Rules for Synaptic Plasticity Matched to Behavioral Function