We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How do I move a message to another Folder in Gmail?

Right now I’m using client.CopyMessage(MsgId, “Foldername”) which, of course, copies the message, leaving the message in the inbox. How to I remove the email from the Inbox and Move it to the other folder?


I’m using VB.NET 4.0.

Hi Kyle,


You may first copy the message to the folder and then delete the message.

client.CopyMessage(msgInfo.UniqueId, “folder-1”); // copy to folder
client.DeleteMessage(msgInfo.UniqueId); // delete from current folder