email: Fix incorrect matching of user ids
Merge pull request #676 from greezybacon/issue/615

email: Fix incorrect matching of user ids

Reviewed-By: Peter Rotich <peter@osticket.com>