I am new to the Lotus C API. I used MailGetMessageBodyText function but it only comes back with the text that the notes user would see. This is understandable just by the name of the function. Now if you are in Notes and you look at the document properties for a message you can look at the message body or bodies and see the actual MIME code there. How can I obtain that info?
Thanks
Subject: C API - How can I get MIME info from message body
First, you need to make sure the note is opened using NSFNoteOpenExt with the flaf OPEN_RAW_MIME, or it will get converted to CD records. Then, you need to use NSFItemInfo and NSFItemInfo next in a loop to get the various items that represent the MIME. These are then raw packed structures of type MIME_PART (defined in mimeods.h) with stuff appended after the structure as well.
Hope that all means something to you. If it doesn’t. you might want to contact me or some other fairly intense C API person who can help you. Alternative, you can tell us what your eventual goal is, as there may be an easier solution, even from LotusScript.
Subject: RE: C API - How can I get MIME info from message body
Thank you both for the responses. I am in the middle of learning the C API with Microsoft Visual C++. I felt it would be a good idea to just jump in with a task. I am creating a small program that can extract all of the data for each message. I started out compiling the readmail.c sample that comes with the C API. I found that program to be a good starting point since it already did that much. But message comes back as just the text that would be displayed for a user that is using Notes. I would like to be able to print out all fields and their data like what you can see from within Notes document properties.
Subject: RE: C API - How can I get MIME info from message body
How can I start learn c-api?
Subject: RE: C API - How can I get MIME info from message body
I have two books I am reading which are “Lotus Notes/Domino 5 Application Development” and “Lotus Notes and Domino Essential Reference”. I download a copy of the latest C API and C++ API. There are good examples that come with the API but there isn’t much info on how to set up your compiler settings. Here is a link I found that helped set up my MS Visual C++ settings for the addin.c sample:http://www.dominopower.com/issuesprint/issue200012/coding.html
Play with the samples to get you started (this is where I am) and also look on the web for samples.
Subject: RE: C API - How can I get MIME info from message body
Please,If you familiar in c-api, could you tell me how can I find the view indexes size there, and second how can I find the event that occur when I move folder to other place. I want to inform the user before he move folder in R6 mail template.
Thanks
Subject: C API - How can I get MIME info from message body
Does it HAVE to be using C-API?
What about LotusScript?
Have a look at the NotesMimeEntity class example, or search this (and ND4-5 forum) for NotesMimeEntity.
Online help: http://www.lotus.com/ldd/doc/domino_notes/Rnext/help6_designer.nsf/855dc7fcfd5fec9a85256b870069c0ab/f3ddb696650a102985256c54004d01b2?OpenDocument