Git Product home page Git Product logo

vcard2person's Introduction

VCARD2PERSON (and PERSON2VCARD)
===============================================================================
Some bash scripts that can convert in-between vcard and Haiku person files.
Sorta in the spirit of mbox2mail and mail2mbox.

It supports vcards of version 2.1, 3.0, and 4.0.โ€” and supports all attributes
applicable to a person file (including photo [through URL or embeded image],
address, name, phone numbers, email, etc).

My use-case is converting contacts between my Android phone and Haiku, which
uses version 2.1 vcards, so that version's been tested fairly well. 
3.0 and 4.0 have only been tested on the example files in ./ex/


--------------------
USAGE
--------------------
usage: vcard2person vcard [-h] [-d directory] [-o path] file

People files will be created using the data from a vcard. Each vcard defined
by a given vcf/vcard file have its person file be named after the vcard's
full-name.
-o	changes the output person filename
-d	outputs all people files to a given directory-- useful if a file
	defines multiple vcards.
-h	prints this message.


usage: person2vcard [-h] [-v version] [-o path] person

Creates a vcard from the given person file's attributes. By default will
output to a file of the same name with a .vcf file-extension.
-o	changes output vcard filename
-v	specify vcard version: 2.1, 3.0, or 4.0. Defaults to 4.0.
	a random URL, and use it as the vcard's photo URL.
-h	print this message.


--------------------
CUSTOMIZATION
--------------------
It should be pretty easy to work with your own custom attributes-- a couple
examples are in './patches/', for a META:birthday attribute (BDAY) and for
a META:group (X-ANDROID-CUSTOM:vnd.android.cursor.item).


--------------------
BORING STUFF
--------------------
Author:  Jaidyn Ann <[email protected]>
License: CC0

vcard2person's People

Contributors

jadedctrl avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.