I did not understand the requirement. I thought you were changing file names, not folder names. If you want free-form file names you'll need to establish a manually-maintained table that maps mail subject keywords to folder names. A new ballgame.