correct way to determine incoming and outgoing emails