mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
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:
parent
dca57dae5a
commit
e6f7878685
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user