From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Strey Subject: Re: org-contacts development Date: Mon, 26 May 2014 17:20:02 +0200 Message-ID: <87egzg36u5.fsf@strey.biz> References: <8761kxnno5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wozol-00040N-CZ for emacs-orgmode@gnu.org; Mon, 26 May 2014 14:40:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wozog-0006QN-MC for emacs-orgmode@gnu.org; Mon, 26 May 2014 14:40:15 -0400 Received: from plane.gmane.org ([80.91.229.3]:56975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wozog-0006Q5-CV for emacs-orgmode@gnu.org; Mon, 26 May 2014 14:40:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wozoa-0005GM-0W for emacs-orgmode@gnu.org; Mon, 26 May 2014 20:40:04 +0200 Received: from drsd-4db3f5aa.pool.mediaways.net ([77.179.245.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 May 2014 20:40:04 +0200 Received: from mstrey by drsd-4db3f5aa.pool.mediaways.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 May 2014 20:40:04 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 2014-05-23, Alexis wrote: > What would be useful would be an 'official', fleshed-out spec for > org-contacts data, which handles a greater range of contact-related > info. At the moment, for example, my org-contacts file makes use of the > properties: > > #+PROPERTY: LANDLINE > #+PROPERTY: MOBILE > #+PROPERTY: POST > #+PROPERTY: RESIDENCE I have been following a VCard-like naming scheme for org-contacts properties for a longer time.=20 see https://lists.gnu.org/archive/html/emacs-orgmode/2013-04/msg01224.html Recently, because of the lack of support for properties in MobileOrg and the lost support for links in properties, I finally decided to export my contact data to Google Contacts and -- just in order to try it -- to BBDB. I accomplished this by creating a table with org-collector and exporting it to CSV that can be imported by Google Contacts and BBDB. Therefore I had to change the naming scheme. It is now similar to that of Google Contacts. Here is the appropriate code: #+BEGIN_SRC org # -*- mode: org; org-cycle-hook: (org-cycle-hide-archived-subtrees org-cycl= e-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-vi= sibility-change) -*- * Contacts :PROPERTIES: :CATEGORY: Contacts :ID: 39584cda-bff0-4b8a-9460-4fefb5b5922c :END: ** A - Contacts :CONTAC= T: :PROPERTIES: :CATEGORY: Contacts :END: *** Actia Sodielec :DAB:DVB:EMPF=C3=84NGER:noe= xport: :PROPERTIES: :KIND: org :Organization 1 - Name: Actia Sodielec :Address 1 - Type: Work :Address 1 - Street:=20 :Address 1 - PO Box: Site Aveyron :Address 1 - Extended Address: BP-9 Route de Mayres :Address 1 - City: Saint Georges de Luzen\c{c}on :Address 1 - Region:=20 :Address 1 - Postal Code: 12100 :Address 1 - Country: France :Phone 1 - Type: Work :Phone 1 - Value: +33 565 623740 :Phone 2 - Type: Fax :Phone 2 - Value: +33 565 623070 :Website 1 - Type: Work :Website 1 - Value: http://www.actiasodielec.fr :LANG: en :END: Saint Georges de Luzen=E1=B8=89on **** Carsac, Sara :PROPERTIES: :KIND: individual :Organization 1 - Name: Actia Sodielec :Organization 1 - Department: Broadcast, Rail & Transport (BTF) :Organization 1 - Title: Responsable Commercial, Sales Manager :FN: Sara Carsac :Family Name: Carsac :Given Name: Sara :Nickname: Dear Sara :EMAIL: s.carsac@actiasodielec.fr :Phone 1 - Type: Work :Phone 1 - Value: +33 618 12345 :Phone 3 - Type: Mobile :Phone 3 - Value: +33 668 12345 :Phone 2 - Type: Fax :Phone 2 - Value: +33 565 12345 :Website 1 - Type: Work :Website 1 - Value: http://actiasodielec.fr :LANG: en :END: ** B - Contacts :CONTAC= T: :PROPERTIES: :CATEGORY: Contacts :END: *** BTI Technologieagentur Dresden GmbH :ADMIN: **** Naumann, Michael :PROPERTIES: :KIND: individual :Organization 1 - Name: BTI Technologieagentur Dresden GmbH :Organization 1 - Department: EU Forschung und Technologie :FN: Michael Naumann :Family Name: Naumann :Given Name: Michael :Nickname: Sehr geehrter Herr Naumann :Address 1 - Type: Work :Address 1 - Street: Gostritzer Str. 61-63 :Address 1 - PO Box:=20 :Address 1 - Extended Address:=20 :Address 1 - City: Dresden :Address 1 - Region:=20 :Address 1 - Postal Code: DE-01217 :Address 1 - Country: Germany :EMAIL: eu-forschung@bti-dresden.de :Phone 1 - Type: Work :Phone 1 - Value: +49 351 871 7560 :Website 1 - Type: Work :Website 1 - Value: http://www.bti-dresden.de :LANG: de :END: * Export ** Export for Google Contacts - C-c C-c on line #+BEGIN: updates the table - place cursor within the table - M-x org-table-export #+BEGIN: propview :id "39584cda-bff0-4b8a-9460-4fefb5b5922c" :cols (Given\ = Name Family\ Name ITEM Name\ Prefix Name\ Suffix Nickname EMAIL Phone\ 1\ -= \ Type Phone\ 1\ -\ Value Phone\ 2\ -\ Type Phone\ 2\ -\ Value Phone\ 3\ -\= Type Phone\ 3\ -\ Value Phone\ 4\ -\ Type Phone\ 4\ -\ Value Address\ 1\ -= \ Type Address\ 1\ -\ Street Address\ 1\ -\ PO\ Box Address\ 1\ -\ Extended= \ Address Address\ 1\ -\ City Address\ 1\ -\ Region Address\ 1\ -\ Postal\ = Code Address\ 1\ -\ Country Address\ 2\ -\ Type Address\ 2\ -\ Street Addre= ss\ 2\ -\ PO\ Box Address\ 2\ -\ Extended\ Address Address\ 2\ -\ City Addr= ess\ 2\ -\ Region Address\ 2\ -\ Postal\ Code Address\ 2\ -\ Country Addres= s\ 3\ -\ Type Address\ 3\ -\ Street Address\ 3\ -\ PO\ Box Address\ 3\ -\ E= xtended\ Address Address\ 3\ -\ City Address\ 3\ -\ Region Address\ 3\ -\ P= ostal\ Code Address\ 3\ -\ Country Organization\ 1\ -\ Name Birthday Organi= zation\ 1\ -\ Title Organization\ 1\ -\ Department Website\ 1\ -\ Type Webs= ite\ 1\ -\ Value LANG TAGS) :colnames ("Given Name" "Family Name" "Name" "N= ame Prefix" "Name Suffix" "Nickname" "E-mail 1 - Value" "Phone 1 - Type" "P= hone 1 - Value" "Phone 2 - Type" "Phone 2 - Value" "Phone 3 - Type" "Phone = 3 - Value" "Phone 4 - Type" "Phone 4 - Value" "Address 1 - Type" "Address 1= - Street" "Address 1 - PO Box" "Address 1 - Extended Address" "Address 1 -= City" "Address 1 - Region" "Address 1 - Postal Code" "Address 1 - Country"= "Address 2 - Type" "Address 2 - Street" "Address 2 - PO Box" "Address 2 - = Extended Address" "Address 2 - City" "Address 2 - Region" "Address 2 - Post= al Code" "Address 2 - Country" "Address 3 - Type" "Address 3 - Street" "Add= ress 3 - PO Box" "Address 3 - Extended Address" "Address 3 - City" "Address= 3 - Region" "Address 3 - Postal Code" "Address 3 - Country" "Organization = 1 - Name" "Birthday" "Oganization 1 - Title" "Organization 1 - Department" = "Website 1 - Type" "Website 1 - Value" "Language" "org-tags") :defaultval "= " :inherit (TAGS) :conds ((stringp KIND)) :match "-ARCHIVE" :noquote t #+END_SRC --=20 Michael Strey mailto:mstrey@strey.biz http://www.strey.biz