VObject* prefProp = isAPropertyOf(o, VCPreferredProp); VObject* home = isAPropertyOf(o, VCHomeProp); VObject* work = isAPropertyOf(o, VCWorkProp); VObject* aol = isAPropertyOf(o, VCAOLProp); VObject* applelink = isAPropertyOf(o, VCAppleLinkProp); VObject* att = isAPropertyOf(o, VCATTMailProp); VObject* cis = isAPropertyOf(o, VCCISProp); VObject* eworld = isAPropertyOf(o, VCEWorldProp); VObject* internet = isAPropertyOf(o, VCInternetProp); VObject* ibmmail = isAPropertyOf(o, VCIBMMailProp); VObject* mcimail = isAPropertyOf(o, VCMCIMailProp); VObject* powershare = isAPropertyOf(o, VCPowerShareProp); VObject* prodigy = isAPropertyOf(o, VCProdigyProp); VObject* telex = isAPropertyOf(o, VCTLXProp); VObject* x400 = isAPropertyOf(o, VCX400Prop);
nsCOMPtr<nsIMsgVCardService> vCardService = do_GetService(MSGVCARDSERVICE_CONTRACT_ID); if (!vCardService) return;  VObject* prefProp = vCardService->IsAPropertyOf(o, VCPreferredProp); VObject* home = vCardService->IsAPropertyOf(o, VCHomeProp); VObject* work = vCardService->IsAPropertyOf(o, VCWorkProp); VObject* aol = vCardService->IsAPropertyOf(o, VCAOLProp); VObject* applelink = vCardService->IsAPropertyOf(o, VCAppleLinkProp); VObject* att = vCardService->IsAPropertyOf(o, VCATTMailProp); VObject* cis = vCardService->IsAPropertyOf(o, VCCISProp); VObject* eworld = vCardService->IsAPropertyOf(o, VCEWorldProp); VObject* internet = vCardService->IsAPropertyOf(o, VCInternetProp); VObject* ibmmail = vCardService->IsAPropertyOf(o, VCIBMMailProp); VObject* mcimail = vCardService->IsAPropertyOf(o, VCMCIMailProp); VObject* powershare = vCardService->IsAPropertyOf(o, VCPowerShareProp); VObject* prodigy = vCardService->IsAPropertyOf(o, VCProdigyProp); VObject* telex = vCardService->IsAPropertyOf(o, VCTLXProp); VObject* x400 = vCardService->IsAPropertyOf(o, VCX400Prop);
static void GetEmailProperties (VObject* o, char ** attribName){    VObject* prefProp = isAPropertyOf(o, VCPreferredProp);  VObject* home = isAPropertyOf(o, VCHomeProp);  VObject* work = isAPropertyOf(o, VCWorkProp);  VObject* aol = isAPropertyOf(o, VCAOLProp);  VObject* applelink = isAPropertyOf(o, VCAppleLinkProp);  VObject* att = isAPropertyOf(o, VCATTMailProp);  VObject* cis = isAPropertyOf(o, VCCISProp);  VObject* eworld = isAPropertyOf(o, VCEWorldProp);  VObject* internet = isAPropertyOf(o, VCInternetProp);  VObject* ibmmail = isAPropertyOf(o, VCIBMMailProp);  VObject* mcimail = isAPropertyOf(o, VCMCIMailProp);  VObject* powershare = isAPropertyOf(o, VCPowerShareProp);  VObject* prodigy = isAPropertyOf(o, VCProdigyProp);  VObject* telex = isAPropertyOf(o, VCTLXProp);  VObject* x400 = isAPropertyOf(o, VCX400Prop);  char     *tString = NULL;  if (prefProp) {    tString = VCardGetStringByID(VCARD_LDAP_PREF_TYPE);  }  if (home) {    tString = VCardGetStringByID(VCARD_LDAP_HOME_TYPE);  }  if (work) {    tString = VCardGetStringByID(VCARD_LDAP_WORK_TYPE);  }  if (aol) {    tString = VCardGetStringByID(VCARD_LDAP_AOL_TYPE);  }  if (applelink) {    tString = VCardGetStringByID(VCARD_LDAP_APPLELINK_TYPE);  }  if (att) {    tString = VCardGetStringByID(VCARD_LDAP_ATTMAIL_TYPE);  }  if (cis) {    tString = VCardGetStringByID(VCARD_LDAP_CSI_TYPE);  }  if (eworld) {    tString = VCardGetStringByID(VCARD_LDAP_EWORLD_TYPE);  }  if (internet) {    tString = VCardGetStringByID(VCARD_LDAP_INTERNET_TYPE);  }  if (ibmmail) {    tString = VCardGetStringByID(VCARD_LDAP_IBMMAIL_TYPE);  }  if (mcimail) {    tString = VCardGetStringByID(VCARD_LDAP_MCIMAIL_TYPE);  }  if (powershare) {    tString = VCardGetStringByID(VCARD_LDAP_POWERSHARE_TYPE);  }  if (prodigy) {    tString = VCardGetStringByID(VCARD_LDAP_PRODIGY_TYPE);  }  if (telex) {    tString = VCardGetStringByID(VCARD_LDAP_TLX_TYPE);  }  if (x400) {    tString = VCardGetStringByID(VCARD_LDAP_X400);  }  if (tString)  {    NS_MsgSACat (&(*attribName), " ");    NS_MsgSACat (&(*attribName), tString);    PR_FREEIF(tString);  }}