Gmail POP3 not getting all messages in Java application

后端 未结 2 1926
悲&欢浪女
悲&欢浪女 2021-01-12 05:35

I have enabled POP3 settings for my gmail. I am able to connect to the POP3 store using my password in a Java app. I have around 10k messages in my inbox.

When I cal

2条回答
  •  没有蜡笔的小新
    2021-01-12 05:45

    By default, GMail's POP3 and IMAP server does not behave like standard POP3 or IMAP servers and hides messages from clients using those protocols (as well as having other non-standard behavior).

    If you want to configure your GMail POP3 or IMAP settings to behave the way POP3 and IMAP are intended to behave according to their protocol specifications, you'll need to log in to your GMail account via your web browser and navigate to the Forwarding and POP/IMAP tab of your GMail Settings page and set your options to look like this:

    POP3 Download

    [X] Enable POP for all mail (even mail that's already been downloaded)

    IMAP Access

    [X] Enable IMAP

    [X] Auto-expunge off - wait for the client to update the server

    [X] Immediately delete the message forever

提交回复
热议问题