Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Retrieve addressbook objects
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
musonic  
View profile  
 More options Nov 10 2012, 2:44 pm
From: musonic <niclebreui...@gmail.com>
Date: Sat, 10 Nov 2012 11:44:05 -0800 (PST)
Local: Sat, Nov 10 2012 2:44 pm
Subject: Retrieve addressbook objects

I expect this is a very simple problem to solve but... What is the best way
to retrieve ALL the addressbook objects contained within an addressbook
collection? I've been reading rfc 6352 but it doesn't seem to directly
address this. It demonstrates how to retrieve objects based on certain
conditions, but not how to retrieve everything. I think that an
addressbook-query report must contain a filter element, but I'm not sure
how to structure the request so that it returns every object.
Could you point me in the right direction? Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evert Pot  
View profile  
 More options Nov 10 2012, 3:46 pm
From: Evert Pot <evert...@gmail.com>
Date: Sat, 10 Nov 2012 12:46:35 -0800 (PST)
Local: Sat, Nov 10 2012 3:46 pm
Subject: Re: Retrieve addressbook objects

Hi,

First: I would recommend against it. It is better to first get the list of
all urls, and then fetch the vcards in batches with multiget.

But, if you're ok with this.. the request would look something like this:

   REPORT /home/bernard/addressbook/ HTTP/1.1
   Host: addressbook.example.com
   Depth: 1
   Content-Type: text/xml; charset="utf-8"
   Content-Length: xxxx

   <?xml version="1.0" encoding="utf-8" ?>
   <C:addressbook-query xmlns:D="DAV:"
                     xmlns:C="urn:ietf:params:xml:ns:carddav">
     <D:prop>
       <D:getetag/>
       <C:address-data/>
     </D:prop>
     <C:filter />
   </C:addressbook-query>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicholas Le Breuilly  
View profile  
 More options Nov 10 2012, 5:04 pm
From: Nicholas Le Breuilly <niclebreui...@gmail.com>
Date: Sat, 10 Nov 2012 22:04:40 +0000
Local: Sat, Nov 10 2012 5:04 pm
Subject: Re: Retrieve addressbook objects

Thanks Evert, I was wondering exactly that.

However, how do I retrieve all the urls in the first place?! Again, I can't find anything in rfc 6352 that deals with this. Should I be reading another memo in conjunction?!

Also, when you talk about batches, what would you recommend as the maximum size of batch per request? I'm assuming you don't recommend getting all the data using a calendar-query because of the potential size of the response?

Thanks,
N

On 10 Nov 2012, at 20:46, Evert Pot <evert...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evert Pot  
View profile  
 More options Nov 10 2012, 5:54 pm
From: Evert Pot <evert...@gmail.com>
Date: Sat, 10 Nov 2012 23:54:41 +0100
Local: Sat, Nov 10 2012 5:54 pm
Subject: Re: Retrieve addressbook objects
On Nov 10, 2012, at 11:04 PM, Nicholas Le Breuilly <niclebreui...@gmail.com> wrote:

> Thanks Evert, I was wondering exactly that.

> However, how do I retrieve all the urls in the first place?! Again, I can't find anything in rfc 6352 that deals with this. Should I be reading another memo in conjunction?!

With PROPFIND on the addressbook home.

> Also, when you talk about batches, what would you recommend as the maximum size of batch per request? I'm assuming you don't recommend getting all the data using a calendar-query because of the potential size of the response?

I think OS X addressbook does about 100 fetches per request, but I'm not fully sure.

If you want to know more about how to do syncing, the best think I can recommend is to just see what existing clients are doing.

Evert


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mbiebl  
View profile  
 More options Nov 10 2012, 8:58 pm
From: mbiebl <mbi...@gmail.com>
Date: Sat, 10 Nov 2012 17:58:54 -0800 (PST)
Local: Sat, Nov 10 2012 8:58 pm
Subject: Re: Retrieve addressbook objects

Hi,

Am Samstag, 10. November 2012 21:46:35 UTC+1 schrieb Evert Pot:

> First: I would recommend against it. It is better to first get the list of
> all urls, and then fetch the vcards in batches with multiget.

I'm interested in that. I was wondering if it is possible to read, write
and delete addressbook entries in batches to improve performance.
Can you elaborate a bit on how to use multiget?

Cheers,
Michael


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evert Pot  
View profile  
 More options Nov 11 2012, 11:53 am
From: Evert Pot <evert...@gmail.com>
Date: Sun, 11 Nov 2012 17:53:14 +0100
Local: Sun, Nov 11 2012 11:53 am
Subject: Re: Retrieve addressbook objects

On Nov 11, 2012, at 2:58 AM, mbiebl <mbi...@gmail.com> wrote:

> Hi,

> Am Samstag, 10. November 2012 21:46:35 UTC+1 schrieb Evert Pot:
> First: I would recommend against it. It is better to first get the list of all urls, and then fetch the vcards in batches with multiget.

> I'm interested in that. I was wondering if it is possible to read, write and delete addressbook entries in batches to improve performance.

SabreDAV has nothing to support this.

> Can you elaborate a bit on how to use multiget?

http://tools.ietf.org/html/rfc6352#section-8.7

Hope this helps,
Evert


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »