This commit adds a setting for mailserver, that allows the client to specify the syncing period. Also fixes a minor issue with deletion of public chats.