changed check for duplicate email to include inbound status