I am trying to use Geronimo's javamail implementation to access IMAP email servers.
I have referenced M2_REPO/org/apache/geronimo/javamail/geronimo-javamail_1.4_mail/1.4/geronimo-javamail_1.4_mail-1.4.jar jar file in my classpath. The application successfully retrieves the javamail session, and the javamail store. I can also successfully retrieve any folder by issuing a store.getFolder("") and also retrieve messages from the returned folder using store.getMessages() However, whenever I try to issue any of the following: store.getDefaultFolder().list() store.getDefaultFolder().list("pattern") store.getFolder("/").list() store.getFolder("/").list("*") store.getFolder("/").list("%") I get the following exception: org.apache.geronimo.javamail.util.CommandFailedException: Unexpected error executing IMAP command at org.apache.geronimo.javamail.store.imap.connection.IMAPConnection.receiveResponse(IMAPConnection.java:409) at org.apache.geronimo.javamail.store.imap.connection.IMAPConnection.sendCommand(IMAPConnection.java:324) at org.apache.geronimo.javamail.store.imap.connection.IMAPConnection.list(IMAPConnection.java:1098) at org.apache.geronimo.javamail.store.imap.IMAPFolder.filterFolders(IMAPFolder.java:1609) at org.apache.geronimo.javamail.store.imap.IMAPFolder.list(IMAPFolder.java:303) at javax.mail.Folder.list(Folder.java:192) at folderlist.process(folderlist.java:189) at folderlist$1.run(folderlist.java:132) at java.lang.Thread.run(Thread.java:619) Has anyone ever had such problem? Any help would be extremely appreciated. Thanks, André. -- View this message in context: http://www.nabble.com/CommandFailedException-when-using-geronimo-in-a-standalone-J2SE-application-tp17691037s134p17691037.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.