From: Michael Strey <mstrey@strey.biz>
To: emacs-orgmode@gnu.org
Subject: Re: org-contacts development
Date: Mon, 26 May 2014 17:20:02 +0200 [thread overview]
Message-ID: <87egzg36u5.fsf@strey.biz> (raw)
In-Reply-To: 8761kxnno5.fsf@gmail.com
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.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 :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-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 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:mstrey@strey.biz
http://www.strey.biz
next prev parent reply other threads:[~2014-05-26 18:40 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 4:07 org-contacts development Alexis
2014-05-23 9:06 ` Rasmus
2014-05-23 10:30 ` Alexander Baier
2014-05-24 4:02 ` Xebar Saram
2014-05-24 10:27 ` Alexis
2014-05-24 10:15 ` Alexis
2014-05-24 14:18 ` Alexander Baier
2014-05-24 14:55 ` Bastien
2014-05-24 15:05 ` Alexis
2014-05-24 15:43 ` Rasmus
2014-05-24 16:10 ` Alexis
2014-05-23 12:45 ` Bastien
2014-05-23 15:46 ` Rasmus
2014-05-24 10:04 ` Alexis
2014-05-24 12:17 ` Bastien
2014-05-24 14:07 ` Alexis
2014-05-24 9:00 ` Org-contacts standardization (was: org-contacts development) Karl Voit
[not found] ` <878ups27km.fsf@gmx.us>
2014-05-24 9:59 ` org-contacts development Alexis
2014-05-24 16:51 ` Daimrod
2014-05-24 17:48 ` Alexis
2014-05-26 3:21 ` Daimrod
2014-05-26 4:06 ` Alexis
2014-05-26 15:20 ` Michael Strey [this message]
2014-05-27 9:27 ` Michael Strey
2014-05-29 3:19 ` Daimrod
2014-06-03 10:23 ` Michael Strey
2014-06-05 4:26 ` Daimrod
2014-07-23 13:40 ` Karl Voit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87egzg36u5.fsf@strey.biz \
--to=mstrey@strey.biz \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).