Message "Move To" feature for gmail imap client

5 views
Skip to first unread message

Rajiv

unread,
Nov 22, 2010, 11:45:34 PM11/22/10
to Gmail4j, tomas.va...@gmail.com
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)
Reply all
Reply to author
Forward
0 new messages