Re: [python-win32] getting global addressbook with extended mapi

2006-01-09 Thread Filip Van Raemdonck
Hi, Looking around to (ab)use the Exchange GAL from python I found the code snippet listed below, posted to this list last summer. When I try it, I get an exception in the fourth last statement: ... rows = mapi.HrQueryAllRows(...) com_error: (-2147220992, 'CONNECT_E_NOCONNECTION', None, N

Re: [python-win32] getting global addressbook with extended mapi]

2006-01-09 Thread Jürgen Kareta
Hi Filip, what version of the pythonwin extension do you use ? It should be Build 205, because this Build contains some important changes. regards, Jürgen >Hi, > >Looking around to (ab)use the Exchange GAL from python I found the code >snippet listed below, posted to this list last summer. > >Wh

Re: [python-win32] getting global addressbook with extended mapi

2005-06-08 Thread python
Hi all, Mark wrote: >Why? Is something missing, or it just tricky? > >Sadly, if you want easy, you use CDO/Simple MAPI. Extended MAPI is not for >the faint hearted (or for people with deadlines :) I think, that's not a matter of to be clench or not. Diving into a crazy organized library with po

Re: [python-win32] getting global addressbook with extended mapi

2005-06-07 Thread Mark Hammond
> Hi Mark, > > can you please give me some more instructions ? Not in any detail as I don't have an exchange server to test against. > restriction = (mapi.RES_CONTENT, # a property restriction >(mapi.FL_SUBSTRING | mapi.FL_IGNORECASE | > mapi.FL_LOOSE, # fuzz level >

Re: [python-win32] getting global addressbook with extended mapi

2005-06-07 Thread Jürgen Kareta
Hi Mark, can you please give me some more instructions ? > A quick >google may offer other advice - eg, see if you can find any C++ code that >references the GAL by any way other than that function. > >Mark > > I found the following on http://msdn.microsoft.com/library/default.asp?url=/librar

Re: [python-win32] getting global addressbook with extended mapi

2005-06-06 Thread Mark Hammond
HrFindExchangeGlobalAddressList and a few others appeared to vanish from recent Exchange SDK versions. Its not clear from MSDN what the status is of those functions, but they certainly don't appear in any MS .h files I currently have. It appears that ActiveDirectory can be used to access the GAL