Gravar-mail: Evolution of flexibility and rigidity in retaliatory punishment