Figuring out gmail interaction