On Saturday 16 August 2008 04:45:02 am Noah Romer wrote: > I'm looking at the possibility of using libmapi to talk to an Exchange > server, but have a few questions. I've looked at the fetchmail example, > and see it pulling in message data like To, CC, message-id, etc. > However, it doesn't pull in the message date. Please note it is a programming example.
If you want to look at an example that does more complete processing, you may be better off looking at the openchangeclient.c code (in the tools/ directory). > I found the header files where PR_DISPLAY_CC (used by mapidump_message() > when calling find_mapi_SPropValue_data()) and friends are defined, but > don't see anything similar for the message date. Is there a separate > query that I haven't yet found to get the message date? You ask for the right property (which might be sent, or received, or changed - you haven't told us which "date" you want), and you get it back, then you process it as required. > Also, is there a way to get the raw message data (i.e. all message > headers plus mime/base64 encoded body and attachments)? Sure. See openchangeclient.c or the libmapi++ test code (only in svn trunk though). You might also like to look at the mapitest modules (see utils/mapitest/modules/ directory) If you can tell us what you are trying to do, I might be able to provide better guidance. Brad _______________________________________________ devel mailing list [email protected] http://mailman.openchange.org/listinfo/devel
