Better on-connect hook for gmail