remove log of incoming event json
add test for empty contents
fix a bug with empty emails