public void openConnection(
     final String userName,
     final String passWord,
     final String host,
     final int port,
     final boolean useSSL) {
   eventQueue.push(new EmailLoginCommand(host, port, useSSL, userName, passWord));
 }
 public void fetchFolders() {
   eventQueue.push(new EmailFetchFoldersCommand());
 }
 public void closeConnection() {
   eventQueue.push(new EmailCloseCommand());
 }
 public void appendMessage(final String mailbox, final EmailMessage message) {
   eventQueue.push(new EmailAppendMessageCommand(mailbox, message));
 }
 public void fetchMessage(final String emailNumber, final boolean useUids) {
   eventQueue.push(new EmailFetchMessagesCommand(emailNumber, "body[1]", useUids));
 }
 public void fetchMessages(final String emailNumbers, final boolean useUids) {
   eventQueue.push(new EmailFetchMessagesCommand(emailNumbers, "all", useUids));
 }
 public void useFolder(final String folder) {
   eventQueue.push(new EmailUseFolderCommand(folder));
 }