Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DanHarkless opened this issue Aug 30, 2016 · 0 comments

Comments

@DanHarkless
Copy link

DanHarkless commented Aug 30, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant