processes emails from folder.