Bản ghi email: Swarming and pattern formation due to selective attraction and repulsion