On Wed, 2011-04-06 at 14:12 +0200, Alois Schloegl wrote:
> find_mapi_SPropValue_data() provides the PT_STRING8 values, the
> corresponding PT_UNICODE fields
> e.g PR_COMPANY_NAME_UNICODE
> are empty.
Hi,
it makes sense, if you do not request these with GetProps, then they are
not fetched from the server, if you use GetPropsAll, then that's
slightly harder, because the function itself has set "fetch unicode
values", but the openchange API does not allow you to request it (check
openchange limapi source code of that GetPropsAll function), and keeps
it with non-unicode fetching. Though the former applies for GetGALTable,
which is using list of properties to be fetched, thus provide their
_UNICODE versions instead. Libmapi returns UTF8 encoded strings for them
(as you surely know).
> I'm currently checking how to extract the content of the distribution
> lists, and the links (indices) to the contacts database.
I do not know if this can be any of use for you, but check how
evolution-mapi is doing that:
http://git.gnome.org/browse/evolution-mapi/tree/src/addressbook/e-book-backend-mapi.c?h=gnome-3-0#n1844
Bye,
Milan
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel