Problem with JavaMail and Exchange Server 2007 - BAD Command Argument

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 com.sun.mail.imap.IMAPMessage.setFlags( at javax.mail.Message.setFlag( ... Now, what it was trying to do is the following: messages[i].setFlag(Flags.Flag.RECENT, false); 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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准