Message "Mark As Read" feature for gmail imap client

26 views
Skip to first unread message

Rajiv

unread,
Nov 21, 2010, 6:16:00 AM11/21/10
to Gmail4j, tomas.va...@gmail.com
Gmail4j now supports mark message as read functionality for gmail imap
client. This new feature can be used used as the following:

GmailConnection conn = new ImapGmailConnection();
//configure connection
GmailClient client = new ImapGmailClient();
client.setConnection(conn);
List<GmailMessage> messages = client.getUnreadMessages();
// now get a GmailMessage item from the list and pass it's message
number
client.markAsRead(message..getMessageNumber());

This feature could be used with Gmail4J Next.
see (http://code.google.com/p/gmail4j/issues/detail?id=15)
Reply all
Reply to author
Forward
0 new messages