1 Reply Latest reply: Nov 22, 2011 2:09 PM by Bill Shannon-Oracle RSS

    CommandFailedException : A350 NO FETCH failed

    user108335
      javaMail 1.4.4
      demo msgshow.java using IMAP protocol

      An exception occurs during reading a "Undeliverable" message genérated by Microsoft Outlook 14.0

      This is the message envelope
      ---------------------------
      Oops, got exception! A350 NO FETCH failed. Mail cannot be parsed.
      javax.mail.MessagingException: A350 NO FETCH failed. Mail cannot be parsed.;
      nested exception is:
      +     com.sun.mail.iap.CommandFailedException: A350 NO FETCH failed. Mail cannot be parsed.+
      --------------------------
      MESSAGE #4:
      This is the message envelope
      ---------------------------
      +     at com.sun.mail.imap.IMAPMessage.loadEnvelope(IMAPMessage.java:1237)+
      +     at com.sun.mail.imap.IMAPMessage.getSubject(IMAPMessage.java:335)+
      +     at msgshow.dumpEnvelope(msgshow.java:518)+
      +     at msgshow.dumpPart(msgshow.java:312)+
      +     at msgshow.main(msgshow.java:263)+
      Caused by: com.sun.mail.iap.CommandFailedException: A350 NO FETCH failed. Mail cannot be parsed.
      +     at com.sun.mail.iap.Protocol.handleResult(Protocol.java:344)+
      +     at com.sun.mail.imap.IMAPMessage.loadEnvelope(IMAPMessage.java:1232)+
      +     ... 4 more+
           

      Do Javamail be able to parse this kind of message ?