In the application I'm working on, there is a function that connects with a mail server via IMAP using JavaMail. One of our clients had the following stack trace:
javax.mail.MessagingException: A13 BAD Command Argument Error. 11;
nested exception is:
com.sun.mail.iap.BadCommandException: A13 BAD Command Argument Error. 11
at javax.mail.Message.setFlag(Message.java:565) ...
Now, what it was trying to do is the following:
Where `messages[i]` is a `javax.mail.Message`.
Now, this error has never occurred to any of our clients who use Exchange Server 2003 and since this client is using Exchange Server 2007 I'm presuming it has something to do with it (bug?).
I also made sure they updated it to the latest service pack and rollup update (Service pack 1 update 8 as of this writing) and the latest JavaMail (1.4.2 as of this writing) and it had no affect.
My question is, is this something I have to wait for Microsoft to fix?
Is there a workaround I can employ?
For the record, the reason why I am setting the recent flag to false is so that the given message will not be processed again in a second pass (i.e. it only processes recent or new messages).
以上就是Problem with JavaMail and Exchange Server 2007 - BAD Command Argument的详细内容，更多请关注web前端其它相关文章！