We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Custom Imap flag

I am trying Aspose Email ImapClient to fetch messages and do some processing. After that, I’d like to mark a flag on the message so that they are skipped at next fetch. It seems custom flag is not supported in ImapMessageFlags?

Java Mail has that. https://javamail.java.net/nonav/docs/api/javax/mail/Flags.html#Flags-java.lang.String-

Hi Samuel,

Thank you for your inquiry.

You can use the changeMessageFlags method of ImapClient class. This will fulfill your requirement. Please visit the link [Changing Message Flags ](https://docs.aspose.com/display/emailjava/Changing+Message+Flags) for details and try it at your end. Feel free to contact us in case of any query or comments.

Hi Ikram,

Thanks for the info.

Flags in IMAP protocol https://tools.ietf.org/html/rfc3501#section-2.3.2
Answered, Deleted… are system flags that I am not going to use. I’d like to set a custom flag (known as keyword in the RFC) that can be any string, e.g. “myAppProcessed”.


Hi Samuel,

Thank you for providing more information. This enhancement request is logged under Id:EMAILJAVA-34277 for further consideration by the product team. You will be automatically notified once any update is received in this regard.