Does anyone know how to use this? Example code?

I'm trying to move an email from the sent area into a folder.