C api mime questions

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:

  1. Is it possible to convert the CD/Rich Text message to MIME on the fly?

  2. 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…

Subject: C API MIME QUESTIONS

Hi Ken

I guess you have the answer to #2 already. What is your status on this question?

Could you also tell me what functions convert the MIME to CD on the fly? I’m just using the C API (no C++) and need to learn more about CD/NotesRTF (or convert it to MIME so I don’t have to :wink:

Subject: C API MIME QUESTIONS

Dear Ken,

Can u please share ur code files/snippets with me? I am running into similar isues and finding very hard to convert either MIME->CD or CD-MIME using C API.

Thanks in advance.

email: mataprasad_agrawal@persistent.co.in

Subject: C API MIME QUESTIONS

I have to convert MIME Mails (txt File) to Notesdocument, can you please help me and send me your code?

katrin_schuetzeneder@gmx.de

Subject: C API MIME QUESTIONS

NEED NOTES API (or custom code) to convert CD to MIME , its urgent forme , please send me u r code