I created destination folder manually. I have the complete code but in the above line while trying to copy the messages from Inbox to the <DestinationFolderName> getting the below error though the destination folder exists. I'm using pop3 protocol and javax.mail.*
javax.mail.FolderNotFoundException: <DestinationFolderName> does not exist
at javax.mail.Folder.copyMessages(Folder.java:1132)
Thank you Paul Clapham,
Now I can COPY messages from Inbox to any custom folder using IMAP.
Do you know whether I can MOVE messages from Inbox to any custom folder??? (Message should get deleted from Inbox folder).