On 04/06/11 11:16, Brad Hards wrote:
On Wed, 6 Apr 2011 05:34:23 pm Alois Schloegl wrote:
Hi,
I'm new to openchange and trying to get into extending openchange for
our needs. We are using openchange for exporting calender and address
book information from the exchange server, in order to make this
information available to our mac and linux users. I'm trying to
implement the following features:
- extract the e-mail address from contact folders
(this is already working, using the patch from
http://mailman.openchange.org/pipermail/devel/2011-March/005356.html
). It might need some clean up, specifically the value codes should move
somewhere else. Has anyone some recommendations about this ?
Its on my list of things to look at. I think there are some issues with the ID
values, but I need to check before saying anything wrong.
- the contacts export does not generate valid utf8 but some other
(unknown to me) format. I've a hack to generate proper utf8 code for
those characters that are in our data base. It would be desirable to
have a general conversion, and implement this within openchangeclient.
Which property is this with?
e.g.
PR_CONVERSATION_TOPIC
PR_COMPANY_NAME
PR_DISPLAY_NAME
PR_SURNAME
PR_DEPARTMENT_NAME
PR_POSTAL_ADDRESS
PR_STATE_OR_PROVINCE
PR_STREET_ADDRESS
PR_COUNTRY
etc.
Basically, any string field can be affected.
You can check the Microsoft specs to see what the
property is supposed to contain.
The specs say that this is of type PtypString. Is this a one-to-one
correspondence to PT_STRING8 ?
find_mapi_SPropValue_data() provides the PT_STRING8 values, the
corresponding PT_UNICODE fields
e.g PR_COMPANY_NAME_UNICODE
are empty.
- I'd also like to extract group information, which is used to send
e-mails to groups of people.
From the Global Address List?
No, its just about the distribution lists that are visible from within
the Contacts folder. [the other lists from the global address list are
already handled through ldap]
This is handled via NSPI, but I'm not sure if we
have up-to-date APIs to extract it.
I'm currently checking how to extract the content of the distribution
lists, and the links (indices) to the contacts database.
Alois
_______________________________________________
devel mailing list
devel@lists.openchange.org
http://mailman.openchange.org/listinfo/devel