added support for tagging emails