Delete(move to trash) feature for gmail imap client

16 views
Skip to first unread message

Rajiv

unread,
Oct 21, 2010, 7:49:36 AM10/21/10
to Gmail4j
Gmail4j now supports delete(move to trash) feature 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();
client.moveToTrash(messages.toArray(new JavaMailGmailMessage[0]));

This feature could be used with Gmail4J Next.

see (http://code.google.com/p/gmail4j/issues/detail?id=12#c4)

Tomas Varaneckas

unread,
Oct 21, 2010, 7:54:05 AM10/21/10
to gma...@googlegroups.com
Hi Rajiv,

I've reviewed your changes, everything looks great, except for one
thing. In ImapGmailClient you are using java.util.logging.* instead of
apache commons-logging which is used in other places. You should do
something like that:

/**
* Logger
*/
private static final Log log = LogFactory.getLog(ImapGmailClient.class)

Otherwise, thanks for this nice contribution! :)

Regards,
Tomas Varaneckas

> --
> You received this message because you are subscribed to the Google Groups "Gmail4j" group.
> To post to this group, send email to gma...@googlegroups.com.
> To unsubscribe from this group, send email to gmail4j+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/gmail4j?hl=en.
>
>

Rajiv

unread,
Oct 21, 2010, 8:11:23 AM10/21/10
to Gmail4j
Hi Tomas,
The requested change is complete.
see http://code.google.com/p/gmail4j/source/detail?r=43

Regards,
Rajiv

On Oct 21, 4:54 pm, Tomas Varaneckas <tomas.varanec...@gmail.com>
wrote:

Tomas Varaneckas

unread,
Oct 21, 2010, 8:16:27 AM10/21/10
to gma...@googlegroups.com
Thanks!

Tomas

Reply all
Reply to author
Forward
0 new messages