CARDDAV:addressbook-multiget, Re: [Ietf-carddav] More comments on draft-daboo-carddav-02

Julian Reschke <julian.reschke@gmx.de> Sun, 15 July 2007 13:39 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: ietf-carddav@osafoundation.org
Delivered-To: ietf-carddav@osafoundation.org
Received: from laweleka.osafoundation.org (laweleka.osafoundation.org [204.152.186.98]) by leilani.osafoundation.org (Postfix) with ESMTP id 468328067B for <ietf-carddav@osafoundation.org>; Sun, 15 Jul 2007 06:39:38 -0700 (PDT)
Received: from localhost (laweleka.osafoundation.org [127.0.0.1]) by laweleka.osafoundation.org (Postfix) with ESMTP id 37D2D14220D for <ietf-carddav@osafoundation.org>; Sun, 15 Jul 2007 06:38:43 -0700 (PDT)
X-Virus-Scanned: by amavisd-new and clamav at osafoundation.org
X-Spam-Score: -1.552
X-Spam-Level:
X-Spam-Status: No, score=-1.552 tagged_above=-50 required=4 tests=[AWL=1.048, BAYES_00=-2.599, SPF_PASS=-0.001]
Received: from laweleka.osafoundation.org ([127.0.0.1]) by localhost (laweleka.osafoundation.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5zC-8ASqMtsp for <ietf-carddav@osafoundation.org>; Sun, 15 Jul 2007 06:38:41 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by laweleka.osafoundation.org (Postfix) with SMTP id A680714220A for <ietf-carddav@osafoundation.org>; Sun, 15 Jul 2007 06:38:40 -0700 (PDT)
Received: (qmail invoked by alias); 15 Jul 2007 13:38:39 -0000
Received: from p508FB563.dip0.t-ipconnect.de (EHLO [192.168.178.22]) [80.143.181.99] by mail.gmx.net (mp041) with SMTP; 15 Jul 2007 15:38:39 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19b5SkOCu5biesQfsGjTs/KzFI+jzzPRxUnhL3/bV ELdC4ftPolexgl
Message-ID: <469A235A.3070205@gmx.de>
Date: Sun, 15 Jul 2007 15:38:34 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: ietf-carddav@osafoundation.org
Subject: CARDDAV:addressbook-multiget, Re: [Ietf-carddav] More comments on draft-daboo-carddav-02
References: <469A1194.5060909@gmx.de>
In-Reply-To: <469A1194.5060909@gmx.de>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-BeenThere: ietf-carddav@osafoundation.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: ietf-carddav.osafoundation.org
List-Unsubscribe: <http://lists.osafoundation.org/cgi-bin/mailman/listinfo/ietf-carddav>, <mailto:ietf-carddav-request@osafoundation.org?subject=unsubscribe>
List-Archive: <http://lists.osafoundation.org/pipermail/ietf-carddav>
List-Post: <mailto:ietf-carddav@osafoundation.org>
List-Help: <mailto:ietf-carddav-request@osafoundation.org?subject=help>
List-Subscribe: <http://lists.osafoundation.org/cgi-bin/mailman/listinfo/ietf-carddav>, <mailto:ietf-carddav-request@osafoundation.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Jul 2007 13:39:38 -0000

Hi,

here are two changes that I would propose for 
CARDDAV:addressbook-multiget 
(<http://tools.ietf.org/html/draft-daboo-carddav-02#section-8.7>):

1) Elevate C:addressbook-data from a pseudo property to a regular 
element of the request/response format,

2) Augment the request with information that allows conditional retrieval.

Example:

Request:

  <?xml version="1.0" encoding="utf-8" ?>
    <C:addressbook-multiget xmlns:D="DAV:"
                         xmlns:C="urn:ietf:params:xml:ns:carddav">
      <C:addressbook-data>
        </C:if-none-match>
        <C:prop name="VERSION"/>
        <C:prop name="UID"/>
        <C:prop name="NICKNAME"/>
        <C:prop name="EMAIL"/>
        <C:prop name="FN"/>
        </C:addressbook-data>
      <D:href if-none-match='"23ba4d-ff11fb"'
 >/home/bernard/addressbook/vcf102.vcf</D:href>
      <D:href>/home/bernard/addressbook/vcf1.vcf</D:href>
    </C:addressbook-multiget>

Response:

    HTTP/1.1 207 Multi-Status
    Date: Sat, 11 Nov 2006 09:32:12 GMT
    Content-Type: text/xml; charset="utf-8"
    Content-Length: xxxx

    <?xml version="1.0" encoding="utf-8" ?>
    <D:multistatus xmlns:D="DAV:"
                   xmlns:C="urn:ietf:params:xml:ns:carddav">
      <D:response>
        <D:href>/home/bernard/addressbook/vcf102.vcf</D:href>
        <D:status>HTTP/1.1 304 Not Modified</D:status>
      </D:response>
      <D:response>
        <D:href>/home/bernard/addressbook/vcf1.vcf</D:href>
        <D:status>HTTP/1.1 404 Resource not found</D:status>
      </D:response>
    </D:multistatus>

Best regards, Julian