How to retrieve gmail sub-folders/labels using POP3?
问题 The code below uses javamail API to access gmail, String host = "pop.gmail.com"; int port = 995; Properties properties = new Properties(); properties.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory"); final javax.mail.Session session = javax.mail.Session.getInstance(properties); store = session.getStore("pop3s"); store.connect(host, port, mCredentialaNme, mCredentialApss); // *************************************************************** Folder personalFolders[] = store