Revert "Try email query API"

This reverts commit 8da88b1451b0092f97e3be73459336167871e585.
Revert "Revert "Try email query API""

This reverts commit 059dd4e5a9f429838422834422354b147338c3fc.
Remove all references to email object/API