Add some conditions to mailing (#268)