Dear openchange-team,

I'm currently testing 0.11; thanks for the improved UTF8-support.

Now, I'm trying to extract from contacts the property "Keywords" through the function mapidump_contact(...). Outlook 2007 presents it as a list of strings separated by semi-colons.

In the past (before 0.11), I was able to extract
keywords = (struct mapi_SLPSTRArrayW*) find_mapi_SPropValue_data(properties, 0x8025101f); if (!keywords) keywords = (struct mapi_SLPSTRArrayW*) find_mapi_SPropValue_data(properties, 0x8025101e);

and than extracting it in the following way:

        if (keywords && keywords->cValues) {
                uint32_t k=0;
                printf("Keywords: %s",keywords->strings[k].lppszW);
while (++k < keywords->cValues) printf("; %s", keywords->strings[k].lppszW);
        }

This does not work with 0.11 because keywords remain NULL. I can get a non-NULL pointer with this command
        keywords  = find_mapi_SPropValue_data(properties, PR_KEYWORD_UNICODE);
but it is not a string and not a pointer to (struct mapi_SPLSTRArray*).


Can anyone tell me how to extract the keywords with 0.11 ?


Kind regards,
   Alois

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to