Skip to main content
January 29, 2009
Question

odd CFPOP Error

  • January 29, 2009
  • 1 reply
  • 612 views
For some reason messages from a specific person to the email address CFPOP is watching causes the exception:

com.sun.mail.pop3.POP3Message cannot be cast to javax.mail.internet.MimeBodyPart

When I was doing a GETALL it would stop CFPOP in its tracks and not let me get any mail from the mailbox back. I updated the code to get the headers first then pull the messages one by one. Getting the headers works fine and i can get around the error with try/catch but I'd really like to know what the issue is with the message itself.

the message is being sent FROM outlook TO a hosted network solutions mailbox.

The issue seems to be on messages that he sends in with an empty body and an attachment. I can send messages from my outlook client with an empty body and an attachment with no issue. I have sent messages in both in HTML and plain text and cannot duplicate it.

Any ideas?
    This topic has been closed for replies.

    1 reply

    Inspiring
    February 27, 2009
    I'm getting one of those errors when there is an attachment with no body content. Just started happening and I've been running cf for a long time. Must be some new email client...