From user-return-23561-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Feb 21 11:25:42 2013 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0518CD697 for ; Thu, 21 Feb 2013 11:25:42 +0000 (UTC) Received: (qmail 90147 invoked by uid 500); 21 Feb 2013 11:25:40 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 90016 invoked by uid 500); 21 Feb 2013 11:25:40 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 90000 invoked by uid 99); 21 Feb 2013 11:25:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2013 11:25:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [91.195.24.3] (HELO mail.open.bg) (91.195.24.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2013 11:25:32 +0000 Received: from usr018.bb963-03.uas.im.wakwak.ne.jp ([61.193.246.148]:48871 helo=dede) by mail.open.bg with esmtpsa (Cipher SSL3.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) id 1U8UH0-0003fC-N4 by authid with login for ; Thu, 21 Feb 2013 13:25:11 +0200 Date: Thu, 21 Feb 2013 20:25:01 +0900 From: svilen To: user@couchdb.apache.org Subject: Re: email as _id? Message-ID: <20130221202501.6eb2e1a8@dede> In-Reply-To: References: <20130221200843.3bb8db3f@dede> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org yes, i did so. the ':' is invalid for emails, so it's easy to decide whether to strip/prepend or not On Thu, 21 Feb 2013 11:14:27 +0000 Robert Newson wrote: > correct, you can't start a doc id with _. It seems simple enough to > solve this by prefixing "email:" to your ids. > > B. > > On 21 February 2013 11:12, Vincenzo Scolaro > wrote: > > I had the same need and I did it this way > > id = md5 (email) > > > > What do you think? > > > > Vincenzo > > > > > > 2013/2/21 svilen > > > >> hi > >> the docs state that anything can be put in _id, except that it > >> can't start with "_" underscore. > >> > >> still, the _ is valid character for starting email address... > >> effectively meaning that in general, e-mail addresses cannot be > >> used as id (the only enforced unique thing).. and has to be stored > >> as a field. or prepended with something non-underscore. > >> > >> correct? > >> > >> svil > >>