Carddav: use email1 as default email on update

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1257 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-07-23 15:56:37 +00:00
parent dca57dae5a
commit e6f7878685
1 changed files with 4 additions and 6 deletions

View File

@ -2798,17 +2798,15 @@ public abstract class ExchangeSession {
convertContactProperties(properties, VCARD_ADR_OTHER_PROPERTIES, property.getValues());
}
} else if ("EMAIL".equals(property.getKey())) {
if (property.hasParam("TYPE", "work")) {
properties.put("email1", property.getValue());
properties.put("smtpemail1", property.getValue());
}
if (property.hasParam("TYPE", "home")) {
properties.put("email2", property.getValue());
properties.put("smtpemail2", property.getValue());
}
if (property.hasParam("TYPE", "other")) {
} else if (property.hasParam("TYPE", "other")) {
properties.put("email3", property.getValue());
properties.put("smtpemail3", property.getValue());
} else {
properties.put("email1", property.getValue());
properties.put("smtpemail1", property.getValue());
}
} else if ("ORG".equals(property.getKey())) {
convertContactProperties(properties, VCARD_ORG_PROPERTIES, property.getValues());