Gmail4j now supports move message to a given destination folder
functionality for gmail imap client.The new functionality get the
destination folder name(ImapGmailLabel.class) and the message
number(gmailMessage.getMessageNumber()) and move GmailMessage object
from source folder to a given destination folder. This new feature can
be used used as the following:
// Constructor with the source folder name. ex: [Gmail]/Sent Mail
ImapGmailClient client = new
ImapGmailClient(ImapGmailLabel.SENT_MAIL);
//configure connection
GmailClient client = new ImapGmailClient();
client.setConnection(conn);
// name the destination folder and the message # to be moved. ex:
[Gmail]/Spam and mesage #1
client.moveTo(ImapGmailLabel.SPAM, 1);
This feature could be used with Gmail4J Next.
see (
http://code.google.com/p/gmail4j/issues/detail?id=18)