set magic for mail