Gravar-mail: Timing rules for synaptic plasticity matched to behavioral function