Error while fetching the messages by UID
843834Aug 24 2010 — edited Aug 26 2010Hi,
Im getting following error while fetching the messages from IMAP folder.
Caused by: javax.mail.MessagingException: A15 NO FETCH could not complete for one or more messages;
nested exception is:
com.sun.mail.iap.CommandFailedException: A15 NO FETCH could not complete for one or more messages
at com.sun.mail.imap.IMAPFolder.getMessageByUID(IMAPFolder.java:1835)
... 16 more
Caused by: com.sun.mail.iap.CommandFailedException: A15 NO FETCH could not complete for one or more messages
at com.sun.mail.iap.Protocol.handleResult(Protocol.java:340)
at com.sun.mail.imap.protocol.IMAPProtocol.fetchSequenceNumber(IMAPProtocol.java:1342)
at com.sun.mail.imap.IMAPFolder.getMessageByUID(IMAPFolder.java:1823)
While I understand that its not a javamail problem bcoz command is failing at server level. I have also read the IMAP specification but couldnt get clear answer in which scenarios this will happen? If UID is not present in mailbox then getMessageByUID will return null (as per java mail comment). What is the best way to recover from this error?
Regards