martinmelin / NaGCal

http://www.nagcal.org/
1 stars 2 forks source link

NaGCal fails at figuring out email addresses #5

Open iandelahorne opened 11 years ago

iandelahorne commented 11 years ago

We have contact entries for people on call with "Work" email addresses in our Google account. Unfortunately these aren't treated as "primary" email addresses by gcal or something. Workaround is creating a "Home" email address for the user in addition to the "Work" address.

iandelahorne commented 11 years ago

I'm no expert at google api, but the work email addresses have the rel attribute of 'http://schemas.google.com/g/2005#work'

Those with '#home' are marked primary. Think we need to do string parsing of the rel attribute since there are no methods to access just the hash attribute