Hello,
I encountered a problem when moving messages to a folder other than Inbox using the IMAP protocol.
Error returned by ZOHO: NO [CANNOT] Invalid target folder
Stacktrace from com.sun.mail library:
- javax.mail.MessagingException: A50 NO [CANNOT] Invalid target folder
- at com.sun.mail.imap.IMAPFolder.copymoveMessages (IMAPFolder.java:2048) ~ [javax.mail-1.5.5.jar: 1.5.5]
- at com.sun.mail.imap.IMAPFolder.moveMessages (IMAPFolder.java:1985) ~ [javax.mail-1.5.5.jar: 1.5.5]
The problem does not occur when the message is moved to the Inbox folder, but it occurs when moving to other standard folders and to custom folders created by me.
Please let me know if this is a bug on the zoho side or maybe my e-mail account settings are wrong. The only setting I found was "View in IMAP client" and it is turned on for all of my folders.
Best wishes and Happy New Year,
Kamil