C API: Is an email in MIME or Rich text format?

I’m witing an email plugin for domino. I do some stuff to MIME encoded messages, and something else for Rich Text messages. To handle that correctly, I need to know which format the message is using.

Is there an easy way of figuring out wether an email uses MIME or RTF, using C API functions ?

(e.g. can I make a single API call to “ask” if this is a MIME (or RTF) message and get a TRUE/FALSE reponse).

Also - these CD records scare me… It there any proper documentation for them?

Subject: C API: Is an email in MIME or Rich text format?

Finding out whether you are dealing with MIME or CD records is easy. The NSFItemInfo will return a type, which will either be TYPE_MIME_PART for MIME or TYPE_COMPOSITE for CD records.

As for documentation on CD records, they are all documented, but the order and interaction between them is much less so. I’ll write more directly in response to your e-mail.

Subject: RE: C API: Is an email in MIME or Rich text format?

You must also remember that there can be together mime bodies as rich text bodies within single message.

regards

Konrad

Subject: *Brilliant… Thanks, guys