[VCARDDAV] New parameter ALTID

Simon Perreault <simon.perreault@viagenie.ca> Wed, 28 July 2010 13:11 UTC

Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@core3.amsl.com
Delivered-To: vcarddav@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DD80528C189 for <vcarddav@core3.amsl.com>; Wed, 28 Jul 2010 06:11:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.45
X-Spam-Level:
X-Spam-Status: No, score=-2.45 tagged_above=-999 required=5 tests=[AWL=0.150, BAYES_00=-2.599, NO_RELAYS=-0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ztiIMho+wTUU for <vcarddav@core3.amsl.com>; Wed, 28 Jul 2010 06:11:38 -0700 (PDT)
Received: from jazz.viagenie.ca (jazz.viagenie.ca [IPv6:2620:0:230:8000::2]) by core3.amsl.com (Postfix) with ESMTP id 7316528C183 for <vcarddav@ietf.org>; Wed, 28 Jul 2010 06:11:38 -0700 (PDT)
Received: from banana.viagenie.ca (unknown [IPv6:2001:df8:0:7:1e4b:d6ff:fe20:6cfe]) by jazz.viagenie.ca (Postfix) with ESMTPSA id B665D21100 for <vcarddav@ietf.org>; Wed, 28 Jul 2010 09:12:00 -0400 (EDT)
Message-ID: <4C502C9F.9030107@viagenie.ca>
Date: Wed, 28 Jul 2010 15:11:59 +0200
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Thunderbird/3.1.1
MIME-Version: 1.0
To: vcarddav@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: [VCARDDAV] New parameter ALTID
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Jul 2010 13:11:42 -0000

My dear WG,

During lunch with Cyrus and Joe we came up with other use cases for grouping
properties that are logically the same but count as 1 toward cardinality. For
example, suppose I have a PHOTO property with different FMTTYPE parameters. I
might want to group them. Here's how I would do it using the proposed ALTID
parameter:

PHOTO;ALTID=1;FMTTYPE=image/jpeg:...
PHOTO;ALTID=1;FMTTYPE=image/png:...

For the case of the LANGUAGE parameter with optional PIDs:

TITLE;ALTID=1;PID=1;LANGUAGE=fr:Patron
TITLE;ALTID=1;PID=2;LANGUAGE=en:Boss
TITLE;ALTID=2;PID=3;LANGUAGE=en:Chief vCard Evangelist

Cyrus mentioned that there were other use cases in iCalendar and that this ALTID
parameter would be useful there.

We think this is better than what we came up with during the WG meeting (i.e.
"foo.fr" and "foo.en"). Also, it preserves the nice property of the content of
the LANGUAGE parameter being only a language tag which is more easily queried
using CardDAV or XPath. (e.g "Give me the closest language to "en-US" would
return "en", which you can do easily using CardDAV "starts-with".).

OK?

Simon
-- 
NAT64/DNS64 open-source --> http://ecdysis.viagenie.ca
STUN/TURN server        --> http://numb.viagenie.ca
vCard 4.0               --> http://www.vcarddav.org