How to get rid of 'Failed to load IMAP envelope' Messaging Exception?

后端 未结 1 517
野性不改
野性不改 2021-01-16 09:00

I am trying to get the list of emails by Message msg[] = folder.getMessages();. After that I am getting the details of each message, meanwhile I am getting

相关标签:
1条回答
  • 2021-01-16 09:17

    Your server is broken. Please report this error to the server vendor. What server are you using?

    In the response, the message's "To" value must meet this syntax defined in the spec:

    env-to      = "(" 1*address ")" / nil
    address     = "(" addr-name SP addr-adl SP addr-mailbox SP addr-host ")"
    

    Instead, the server has returned "()". It should've returned "NIL" if there is no To header.

    You can work around server bugs using the technique described in the JavaMail FAQ.

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