I am using IMAP protocol to connet to my gmail account.
My application fails at this line. message.setFlag(Flags.Flag.SEEN, true);
And the log details are as follows:
[java] ---- exception report ----------------------------------------------------------
[java] An error Occured while reading mail
[java] Exception: javax.mail.MessagingException
[java] Message: A10 NO STORE attempt on READ-ONLY folder (Failure)
[java] ---- cause ---------------------------------------------------------------------
[java] Exception: com.sun.mail.iap.CommandFailedException
[java] Message: A10 NO STORE attempt on READ-ONLY folder (Failure)
[java] ---- stack trace ---------------------------------------------------------------
[java] com.sun.mail.iap.CommandFailedException: A10 NO STORE attempt on READ-ONLY folder (Failure)
[java] com.sun.mail.iap.Protocol.handleResult(Protocol.java:294)
[java] com.sun.mail.imap.protocol.IMAPProtocol.storeFlags(IMAPProtocol.java:1294)
[java] com.sun.mail.imap.protocol.IMAPProtocol.storeFlags(IMAPProtocol.java:1279)
[java] com.sun.mail.imap.IMAPMessage.setFlags(IMAPMessage.java:843)
[java] javax.mail.Message.setFlag(Message.java:565)
Any help will be appreciated.
Thanks, Kumaraswamy.N