Add incoming mail logic