Moving messages

ImapX allows you to move messages between folders. In order to move the message, use the Message.MoveTo method

/* .. Init client, authenticate .. */        
/* .. folder = any folder .. */  
/* .. message = any message .. */  
message.MoveTo(folder)

If you want to the client to download the moved message in the target folder, set the second argument to true. This is only possible if your server supports the UIDPLUS extension!

/* .. Init client, authenticate .. */        
/* .. folder = any folder .. */  
/* .. message = any message .. */  
message.MoveTo(folder, true)

Next

Last edited May 1, 2014 at 1:39 PM by pavel_azanov, version 2