create one common sync method for emails and chats. Needs more testing