call updateFolders before running search
updateFolders after doing Archive