Gmail4j now supports to accept source folder name as argument for
gmail imap
client. This new feature can be used used as the following:
case 1 : ImapGmailClient client = new ImapGmailClient();
if the user call the no args constructor the ImapGmailClient will
default to the ImapGmailLabel.INBOX as the source folder.
case 2 : ImapGmailClient client = new
ImapGmailClient(ImapGmailLabel.TRASH);
if the user call the with args constructor , the given
ImapGmailLabel.class enum the ImapGmailClient will default to that
passes argument folder name
ex: ImapGmailLabel.TRASH will set the source folder as [Gmail]/Trash.
This feature could be used with Gmail4J Next.
see (
http://code.google.com/p/gmail4j/issues/detail?id=16)