Email (record): Simple learning rules to cope with changing environments