def move_to(self, folder):
if isinstance(folder, Folder):<EOL><INDENT>self.move_to(folder.id)<EOL><DEDENT>else:<EOL><INDENT>self._move_to(folder)<EOL><DEDENT>
Moves the email to the folder specified by the folder parameter.

        Args:
            folder: A string containing the folder ID the message should be moved to, or a Folder instance