Hacker
Public
Radio
Your ideas, projects, opinions - podcasted.
New episodes Monday through Friday.
Hosted by
Jon Kulp
on 2013-08-14 00:00:00
About a year ago I decided to try to clean up my contacts.
The problem: CRUFT!
- Importing, exporting re-importing in different accounts and in different email clients and several computers etc over span of ~10 years.
- 1200+ gmail contacts
- Many duplicates
What I wanted:
- 1 set of contacts across platforms with single source file from which all
others are generated
- plain-text format, easy to use w/scripting & text editor
- No duplicates
- no cruft
- easy to maintain
- easy to import/export in T-bird, ownCloud
- sync with phone
Steps to Success:
- Turn off Gmail default setting that saves every incoming email address in your address book
- Deleted all extraneous contacts (went from ~1200 down to about 400)
- Tedious part here: compare duplicates, consolidate info
- Decide on source-file format
- T-bird = LDIF
- OwnCloud = vCard
- LDIF wins b/c found script to convert to vCard, but not good script for other direction
- Convert all disparate contacts lists to LDIF, begin consolidating into one file
- LDIF ready? Import to T-bird
- Perl script to convert LDIF to vCard –> import to ownCloud
- CardDAV-sync to sync from o.c. to phone
- Bash script to create new LDIF entries, convert to vcf, add to master file easily
Wishlist
- Make t-bird sync w/owncloud (t-bird SOGO extension broken)
- CLI API to update owncloud contacts via a script instead of having to use the web interface
Links
More Information...
Copyright Information
Unless otherwise stated, our shows are released under a Creative Commons
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.
The HPR Website Design is released to the Public Domain.