In xPages app, I have to manipulate with mail message using the Java code. For certain mail messages I cant access the body field as richtext. I'm using standard
RichTextItem rt = (RichTextItem) doc.getFirstItem("body");
For certain internet messages I'm getting error: java.lang.ClassCastException: lotus.domino.local.Item incompatible with lotus.domino.RichTextItem
It's because the body field (I can see it in document properties) is type mime: 'Data Type: MIME Part' and not richtext . How can I handle this? I need to access field as RichText because I need to append this body field at the and of another rich text item using "appendRTItem" method.
Anyone any idea? Please ...