Code Monkey home page Code Monkey logo

dump-contacts2db's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dump-contacts2db's Issues

Starting to get errors running the script in WSL

/mnt/c/Users/knigh/github/dump-contacts2db/dump-contacts2db.sh: line 2: $'\r': command not found
/mnt/c/Users/knigh/github/dump-contacts2db/dump-contacts2db.sh: line 44: syntax error near unexpected token `$'do\r''
'mnt/c/Users/knigh/github/dump-contacts2db/dump-contacts2db.sh: line 44: `do`

Tested on Android 5

Hi,

You may update the Readme as i just had a success using you script on a databases created on android 5.0 :)

Improvement for photo base64 encoding

Thanks for this very useful script. I just had one issue with it:

On MacOS, base64 does not support the --wrap=0 option used to re-format base64 output for photos. Leaving out this option would lead to overlong lines, which cause the Android Contact app to crash on import. Here is a more portable solution. Replace

photo=`echo $photo | perl -ne 's/([0-9a-f]{2})/print chr hex $1/gie' | base64 --wrap=0`

by

photo=`echo $photo | perl -ne 's/([0-9a-f]{2})/print chr hex $1/gie' | base64 | perl -ne 's/(.{72})/print "$1\n "/gie'`

Multiple contacts

I always get multiple contacts from one original contact, which then need to resolve manually

Patch to support email types and birthdays/anniversaries; script to reformat phone numbers to use parens

Howdy, stachre. Thank you so much for dump-contacts2db! It made my life a heck of lot easier when upgrading to a new major version of Android, since I don't use Google contact syncing. There were just two types of info that your script didn't preserve that I didn't want to lose or have to re-enter manually, so I added support for those: email types (work / home / other) and contact events (birthdays and anniversaries). Starting with Android 5.x, contact events are no longer supported for local contacts, so I had the script also append birthdays and anniversaries to the NOTE field (this also allows "Other" events to be saved, since they aren't supported directly in VCF). Attached is dump-contacts2db.sh.email_types_and_contact_events.patch.txt, which implements this functionality. If you prefer not to include my name on the copyright line, I would be happy to assign my copyright for these changes to you. In that case, however, I would appreciate a mention on the version line. Please do not use my email address if you do so, due to harvester spambots -- thanks.

I also wanted to offer you my script https://secure.harkless.org/dan/software/reformat_contacts2.db_phone_numbers_to_use_parens, which, like the name implies, can be run on one's Android device after doing a VCF import to get around the fact that Contacts' VCF import process reformats (###) ###-#### phone numbers to ###-###-####, which I find much more difficult to read. The script only supports U.S.-style 10-digit phone numbers. If you would like to add it to the dump-contacts2db archive, you would be welcome to it. It, like dump-contacts2db, is GPL'd.

Thanks again for sharing your work!

P.S. You can add Cygwin to the list of tested platforms in the README.

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.