// TODO: Add the secure connection stuff to the IMAP fetchmail
// Look at http://www.javaworld.com/javatips/jw-javatip115_p.html
Session session = Session.getDefaultInstance(properties);
IMAPStore store = (IMAPStore)session.getStore(mailAccountVO.getAccountType());
store.connect(mailAccountVO.getMailServer(), mailAccountVO.getLogin(), mailAccountVO.getPassword());
Folder defaultIMAPFolder = null;
IMAPFolder[] folders = null;
try {
defaultIMAPFolder = store.getDefaultFolder();