I have a process which reads the mail from lotus notes mailbox and convert them(Body and attachments) into tiff. Once the mail is converted in to tiff, I moved that mail into another folder from inbox.
Sometimes I get an error (NO COPY Document has been deleted) while moving this mail to another folder.
I am using Folder.copyMessage() to copy the message to another folder.
javax.mail.MessagingException: A808 NO COPY Document has been deleted;
69496 nested exception is:
69497 com.sun.mail.iap.CommandFailedException: A808 NO COPY Document has been deleted
69498 at com.sun.mail.imap.IMAPFolder.copyMessages(IMAPFold er.java:1224)
69499 at com.assurant.inc.util.EmailHelper.moveEmailToFolde r(EmailHelper.java:269)
69500 at com.assurant.inc.service.webservice.EmailService.p rocessError(EmailService.java:524)
69501 at com.assurant.inc.service.webservice.EmailService.p rocessEmail(EmailService.java:217)
69502 at com.assurant.inc.service.webservice.EmailService.r unNotesEmailExtract(EmailService.java:90)
69503 at com.assurant.inc.service.webservice.EmailService.r un(EmailService.java:74)
69504 at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:432)
69505 at java.util.concurrent.FutureTask$Sync.innerRunAndRe set(FutureTask.java:295)
69506 at java.util.concurrent.FutureTask.runAndReset(Future Task.java:150)
69507 at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$101(ScheduledThreadPoolE xecutor.java:88)
69508 at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.runPeriodic(ScheduledThreadPool Executor.java:165)
69509 at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:189)
69510 at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:678)
69511 at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:703)
69512 at java.lang.Thread.run(Thread.java:811)