How to retrieve gmail sub-folders/labels using POP3?

前端 未结 1 1249
臣服心动
臣服心动 2021-01-14 19:23

The code below uses javamail API to access gmail,

    String host = \"pop.gmail.com\";
    int port = 995;
    Properties properties = new Properties();
            


        
相关标签:
1条回答
  • 2021-01-14 20:10

    Don't use POP, use IMAP if you want labels/folders.

    As noted in the javamail docs, due to the nature of the POP protocol, a POP message store always

    Contains only one folder, "INBOX".

    0 讨论(0)
提交回复
热议问题