Results 1 to 8 of 8

Thread: Read Contacts from Public

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    23

    Read Contacts from Public

    Hi,

    i read all Contacts from Public folder, its work. Read Contacts from spezified Folder in Public Folder works also.

    But how can i read a Subfolder from Public inclusive all Subfolders.

    Public Folder
    -- Contacts
    --- Firm A
    -- Contacts A
    --- Contacts
    ---- Firm B
    ---- Folder with Contacs
    ---- Firm C
    ---- Folder with Contacs

    I would read all Contacs from Contacts A and deeper.

    Thanks!

    Best Regards

    Steffen

  2. #2
    Junior Member
    Join Date
    Jul 2010
    Posts
    5

    Re: Read Contacts from Public

    i did this with java and ldap, but i think the same could be work with php-mapi. but i didn't test them.

    here my procedure:
    try a loop with recursion.
    loop through all contacts in the Contacts A folder and if you reach a contact than keep them (maybe in a list).
    if you reach a subfolder so loop through this subfolder (with a recursive call of the same method/function) and keep the contacts in there.
    with the recursion is doesn't matter how many subfolders you have. the same method/function will be execute if you find a new contactlist(subfolder).
    than he goes back to the main loop and finished them. so you might have all contacts from Contacts A and the subfolders.

    i hope this little hint (loop and recursion) helps you to find a way.

    regards

  3. #3
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475

    Re: Read Contacts from Public

    Hi Steffen,

    I'm afraid there's no other way than opening subfolders you need one by one and pulling contacts out of them. So, after you've opened a folder, get its hierarchy and contents tables. Then the same procedure for the folders in the hierarchytable if there are any.

    Greets, Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

  4. #4
    Member
    Join Date
    Jan 2010
    Location
    Zurich, Switzerland
    Posts
    57

    Re: Read Contacts from Public

    Hi Steffen,

    could you quickly tell me how you're accessing the contacts? I'd also like to check whether it's possible (with reasonable effort) to implement a webdav component to be able to at least read my Zarafa contacts with Evolution. Could you give me a hint on what function you use in php to access contacts? I couldn't find any in the API manual.

    Best
    Rainet

  5. #5
    Senior Member
    Join Date
    Nov 2008
    Posts
    424

    Re: Read Contacts from Public

    You can find info on php-mapi extension here:

  6. #6
    Member
    Join Date
    Jan 2010
    Location
    Zurich, Switzerland
    Posts
    57

    Re: Read Contacts from Public

    Yep, that's right, but the category "Addressbook Functions" only seems to provide lookups for Name --> Email, not entire contact data, that's why I was asking for a hint to the right function that is able to do this. Any Idea?

  7. #7
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475

    Re: Read Contacts from Public

    Hi rvjr,

    Addressbook functions provide lookups for phone numbers aswell (at least in Zarafa 6.40 versions). If you take a look at getSearchResults function in ics.php in Z-Push, you will find how is that done. There are also more properties e.g. address available but they aren't specified in ActiveSync protocol, so Z-Push does not use them. Take a look also at ldap.propmap.cfg for more fields.

    Greets, Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

  8. #8
    Member
    Join Date
    Jan 2010
    Location
    Zurich, Switzerland
    Posts
    57

    Re: Read Contacts from Public

    Wow, just looked at ics.php... Z-Push seems to be a great "Tutorial" for doing Zarafa MAPI stuff in PHP :-) Thanks for the hint, I'll take a look at this in a few days!

    Best
    Rainer

Similar Threads

  1. Issues sending read confirmations from public folders
    By KPaxx in forum Installation, Configuration and Maintenance
    Replies: 0
    Last Post: 25-04-2012, 04:09 PM
  2. BES5 - no public Contacts
    By xtec in forum Z-Push when using Kopano/Zarafa
    Replies: 1
    Last Post: 04-05-2011, 09:01 PM
  3. Read/Writable "Admin" Folder on initialized Public Stores
    By micha in forum Installation and Configuration Archives
    Replies: 0
    Last Post: 17-06-2010, 09:26 AM
  4. zarafa-restore public forder -> Unable to read index file
    By joeber in forum Administration and Integration Archives
    Replies: 1
    Last Post: 08-06-2010, 07:46 PM
  5. syncing mobile contacts with public folder contacts
    By tinus01 in forum Mobile devices Archives
    Replies: 2
    Last Post: 01-02-2008, 05:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •