mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
Fix regression : /exchange/ does not work for galfind under Exchange 2007
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@538 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
5fb8e919cc
commit
e263c8e797
@ -1740,7 +1740,7 @@ public class ExchangeSession {
|
|||||||
*/
|
*/
|
||||||
public String getCmdBasePath() {
|
public String getCmdBasePath() {
|
||||||
if (mailPath == null) {
|
if (mailPath == null) {
|
||||||
return "/exchange/";
|
return "/public/";
|
||||||
} else {
|
} else {
|
||||||
return mailPath;
|
return mailPath;
|
||||||
}
|
}
|
||||||
@ -1993,7 +1993,7 @@ public class ExchangeSession {
|
|||||||
|
|
||||||
final HashMap<String, StringBuilder> busyMap = new HashMap<String, StringBuilder>();
|
final HashMap<String, StringBuilder> busyMap = new HashMap<String, StringBuilder>();
|
||||||
|
|
||||||
protected StringBuilder getBusyBuffer(char type) {
|
StringBuilder getBusyBuffer(char type) {
|
||||||
String fbType = FBTYPES.get(Character.valueOf(type));
|
String fbType = FBTYPES.get(Character.valueOf(type));
|
||||||
StringBuilder buffer = busyMap.get(fbType);
|
StringBuilder buffer = busyMap.get(fbType);
|
||||||
if (buffer == null) {
|
if (buffer == null) {
|
||||||
@ -2003,7 +2003,7 @@ public class ExchangeSession {
|
|||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void startBusy(char type, Calendar currentCal) {
|
void startBusy(char type, Calendar currentCal) {
|
||||||
if (type == '4') {
|
if (type == '4') {
|
||||||
knownAttendee = false;
|
knownAttendee = false;
|
||||||
} else if (type != '0') {
|
} else if (type != '0') {
|
||||||
@ -2015,13 +2015,13 @@ public class ExchangeSession {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void endBusy(char type, Calendar currentCal) {
|
void endBusy(char type, Calendar currentCal) {
|
||||||
if (type != '0' && type != '4') {
|
if (type != '0' && type != '4') {
|
||||||
getBusyBuffer(type).append('/').append(icalParser.format(currentCal.getTime()));
|
getBusyBuffer(type).append('/').append(icalParser.format(currentCal.getTime()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public FreeBusy(SimpleDateFormat icalParser, Date startDate, String fbdata) {
|
FreeBusy(SimpleDateFormat icalParser, Date startDate, String fbdata) {
|
||||||
this.icalParser = icalParser;
|
this.icalParser = icalParser;
|
||||||
if (fbdata.length() > 0) {
|
if (fbdata.length() > 0) {
|
||||||
Calendar currentCal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
|
Calendar currentCal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user