git clone 'git://github.com/flexibeast/org-vcard.git'
Author: Alexis mailto:email@example.com
org-vcard is a package for exporting and importing vCards from within GNU Emacs' Org mode.
org-vcard comes with a built-in contacts style called
flat, which adheres to org-contacts' method of structuring contacts and contact information. It not only supports the properties specified in org-contacts.el, but many other properties as well.
org-vcard is working towards full compliance with the vCard 4.0 (RFC 6350), 3.0 (RFC 2426 and RFC 4770) and 2.1 specifications.
org-vcard introduces a new style for Org contacts, called
tree. More details below.
Modify existing contact styles; change the labels used to map contact details in
org-mode to various vCard properties/types, or add new ones. Create completely new contact styles by plugging in your own code to handle export and import.
Install org-vcard from MELPA, or put the
org-vcard folder in your load-path and do a
The main user commands are
org-vcard-import, which are intended to be called interactively; you can press TAB at many of the minibuffer prompts to get a list of the available options for a prompt.
org-vcard-import are wrappers around the
org-vcard-transfer-helper can be used to export and import programatically (i.e. via Emacs Lisp).
org-vcard-mode will add an “Org-vCard” menu to the menu bar, from which one can access the various export, import and customisation options.
Note! When exporting to vCard using the source
buffer, narrowing is respected. If you wish to export the entire buffer without restriction, remove any narrowing in effect.
For a list of the properties available by default for each contacts style and related vCard versions, visit the “Org Vcard Styles Languages Mappings” setting in the Org Vcard customize group, or examine the value of the
Note! The default mappings might need to be tweaked for particular use-cases. For example, some systems create vCards with a bare
TEL property, whereas others use
TEL;TYPE=voice; but both are mapped to the Org
PHONE property (for
flat style) or
phone FIELDTYPE (for
tree style). In this case, the
customize interface could be used to delete whichever of the two mappings is unwanted.
The value of the
org-vcard-include-import-unknowns (boolean) variable specifies whether the import process should include vCard properties not listed in the mapping being used.
The value of the
org-vcard-append-to-existing-export-buffer (boolean) variables specify whether the import/export process should append to any existing import/export buffer. If not, a new import/export buffer is created for each import/export.
The structure of the
tree contacts style is:
* [Contact name] :PROPERTIES: :KIND: individual :FIELDTYPE: name :END: ** [Information type] *** [Information value] :PROPERTIES: :FIELDTYPE: [Field type] [:PREFERRED:] :END:
Here's an example:
* Joan Smith :PROPERTIES: :KIND: individual :FIELDTYPE: name :END: ** Mobile *** 0000 999 999 :PROPERTIES: :FIELDTYPE: cell :END: ** Email *** Work **** address1@hidden :PROPERTIES: :FIELDTYPE: email-work :PREFERRED: :END: *** Home **** address2@hidden :PROPERTIES: :FIELDTYPE: email-home :END:
tree style uses a heading's FIELDTYPE property to associate fields with their data, the above hierarchy is only one way to structure contacts; equivalently, one could do:
* People ** Joan Smith :PROPERTIES: :KIND: individual :FIELDTYPE: name :END: *** Cell **** 0000 999 999 :PROPERTIES: :FIELDTYPE: cell :END: *** Email **** address1@hidden :PROPERTIES: :FIELDTYPE: email-work :PREFERRED: :END: **** address2@hidden :PROPERTIES: :FIELDTYPE: email-home :END:
Add support for one-vCard-per-file export.
Add support for line folding when exporting.
Add support for vCard PREF for style
Add support for vCard KINDs
Add support for per-card version handling on import.
Improve compliance with each version of the vCard specification.
Extend test coverage.
If you discover an issue or bug in
org-vcard not already noted:
as a TODO item, or
please create a new issue with as much detail as possible, including:
which version of Emacs you're running on which operating system, and
how you installed
A basic test suite is located in the repository
tests directory, in
org-vcard-tests.el. To run the suite:
org-vcard.elhas been loaded, e.g.
(ert '(tag org-vcard)).
GNU General Public License version 3, or (at your option) any later version.
org-vcard.el by el2markdown.