IMailbox mailbox = SessionManager.get().getMailbox();
log.debug( "emptying folder " + folderId );
try {
mailbox.emptyFolder( folderId );
log.debug( "...successful" );
}
catch (MailFolderException e) {
log.error( e.getMessage(), e );
throw new GWTMailFolderException( null, e.getFolder().getName() );