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. 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-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) -*- * Contacts :PROPERTIES: :CATEGORY: Contacts :ID: 39584cda-bff0-4b8a-9460-4fefb5b5922c :END: ** A - Contacts :CONTACT: :PROPERTIES: :CATEGORY: Contacts :END: *** Actia Sodielec :DAB:DVB:EMPFÄNGER:noexport: :PROPERTIES: :KIND: org :Organization 1 - Name: Actia Sodielec :Address 1 - Type: Work :Address 1 - Street: :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: :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ḉon **** 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.car...@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 :CONTACT: :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: :Address 1 - Extended Address: :Address 1 - City: Dresden :Address 1 - Region: :Address 1 - Postal Code: DE-01217 :Address 1 - Country: Germany :EMAIL: eu-forsch...@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 Address\ 2\ -\ PO\ Box Address\ 2\ -\ Extended\ Address Address\ 2\ -\ City Address\ 2\ -\ Region Address\ 2\ -\ Postal\ Code Address\ 2\ -\ Country Address\ 3\ -\ Type Address\ 3\ -\ Street Address\ 3\ -\ PO\ Box Address\ 3\ -\ Extended\ Address Address\ 3\ -\ City Address\ 3\ -\ Region Address\ 3\ -\ Postal\ Code Address\ 3\ -\ Country Organization\ 1\ -\ Name Birthday Organization\ 1\ -\ Title Organization\ 1\ -\ Department Website\ 1\ -\ Type Website\ 1\ -\ Value LANG TAGS) :colnames ("Given Name" "Family Name" "Name" "Name Prefix" "Name Suffix" "Nickname" "E-mail 1 - Value" "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" "Address 2 - PO Box" "Address 2 - Extended Address" "Address 2 - City" "Address 2 - Region" "Address 2 - Postal Code" "Address 2 - Country" "Address 3 - Type" "Address 3 - Street" "Address 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 -- Michael Strey mailto:mst...@strey.biz http://www.strey.biz