Import Vcard with VPIM


I’m currently looking to build a contact manager with Rails. I need to
offer Vcard import / export capabilities. I have VPIM setup in my Rails
app, but I’m a little stuck on how to pull the correct data from the
vcards. I’ve looked at the docs for VPIM and those have helped get me
started, but I still can’t figure out how to pull specific data.

As an example, I’d like to be able to pull out all email addresses for a
vcard, then check if they are preferred or not, and what kind of email
address they are (home, work, etc.)


Anyone have any ideas on this? Or should I try the Ruby Forum?