Hi Guys,
I have perused as many of the MIME posts as possible and tried some code out, but I have a few questions for you CAPI MIME experts.
I have a dsapi filter that accesses the Notes Mail database and provides message information services to an external process.
I already have code that will read POP3/MIME mail and convert into my system and also can write native MIME.
To take advantage of code already written,
I want to access the messages (both MIME and CD/Rich Text) as MIME, make mods, and then save the native MIME back to Notes (replacing CD with MIME).
I currently read all message fields using C++ api functions. These convert the MIME to CD on the fly. To get the HTML text, I then open the same doc again using NsfOpenExt and OPEN_RAW_MIME flag in the CAPI and get the html body contents out of the MIME struct.
This works for me, but it dawned on me that if I could simply access any document as MIME then I could reuse a whole lot of code I already have.
Questions:
-
Is it possible to convert the CD/Rich Text message to MIME on the fly?
-
Is it simple to store native MIME back to the doc? I assume I just use the CAPI to blast the MIME structs back in.
That’s a good start…