IntelliJ Java IDE
The moose likes Other JSE/JEE APIs and the fly likes JavaMail API IMAP Provider copyMessages Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "JavaMail API IMAP Provider copyMessages" Watch "JavaMail API IMAP Provider copyMessages" New topic
Author

JavaMail API IMAP Provider copyMessages

David Schaefgen
Greenhorn

Joined: Nov 22, 2001
Posts: 1
Ok here it goes-

I'm working on a javaMail project and need to be able to copy messages from one folder to another based on their content. The messages are not sequential so the simplest way to pass them back and forth is on at a time. However every time the copyMessages() command runs I recieve the following message:
javax.mail.MessagingException: A4 NO COPY failed: Sequence invalid;
nested exception is:
com.sun.mail.iap.CommandFailedException: A4 NO COPY failed: Sequence invalid
This is somewhat annoying as I can find no documentation of what this means in the IMAP standards or the JavaMail Documentation. What is occuring is one "agent" checks the inbox for new messages, when it finds them it ships them off through an event to the filter "agent", which calls getContent() on the message and then uses that content to filter the text portions for words or phrases contained in its rule databases. Once it decides on a location it is sent to the appropriate manager "agent" via an event which in turn copy's the messages from its mailbox to whatever mailbox the event tells it too. The problem occurs when the copyMessages() command is called and it is failing at the server due to some sort of sequence error. Any help would be greatly appreciated.
-David
 
 
subject: JavaMail API IMAP Provider copyMessages
 
Threads others viewed
comparing characters
Java Mail behind Proxy
How to get uid for imap messages?
JavaMail 1.3 Unable to acces the shared mailbox through IMAP
JavaMail/James: Handle email bouncebacks?
developer file tools