Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Specify preferred email addresses and phone numbers #25
The vCard specification includes a
If a phone has the
If an email has the
The preferred email could be specified like this:
This would check if the email firstname.lastname@example.org already exists for
What I like about this and issue #24 is that they are things that were features of an early prototype version of ppl that I decided not to bother with until other priorities were sorted out. There's even an old Ppl::Entity::Email class with a
So yeah, both of these are definitely going to happen. Just a question of when. Now that I know somebody other than me thinks it'd be useful too, I might as well build them in the near future.
Damn, this was a surprisingly large amount of refactoring. I guess that's the difference between "array of strings attached to contact" and "entity with its own properties which can be updated independently", which is the transition email addresses and phone numbers had to go through.
Anyway, it's in