Gravar-mail: Synaptic and nonsynaptic plasticity approximating probabilistic inference