Merge commit '725bf7bb85c8358656c3c1775dc65b14af709f2a' * commit '725bf7bb85c8358656c3c1775dc65b14af709f2a': Fix problem w/ SmartReply & SmartForward in Exchange 2003
This commit is contained in:
commit
3932cf2ee3
@ -41,7 +41,6 @@ import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
public class EasOutboxService extends EasSyncService {
|
||||
|
||||
@ -126,8 +125,7 @@ public class EasOutboxService extends EasSyncService {
|
||||
String cmd = "SendMail&SaveInSent=T";
|
||||
if (smartSend) {
|
||||
cmd = reply ? "SmartReply" : "SmartForward";
|
||||
cmd += "&ItemId=" + URLEncoder.encode(itemId, "UTF-8") + "&CollectionId="
|
||||
+ URLEncoder.encode(collectionId, "UTF-8") + "&SaveInSent=T";
|
||||
cmd += "&ItemId=" + itemId + "&CollectionId=" + collectionId + "&SaveInSent=T";
|
||||
}
|
||||
userLog("Send cmd: " + cmd);
|
||||
HttpResponse resp = sendHttpClientPost(cmd, inputEntity);
|
||||
|
@ -518,7 +518,9 @@ public class EasSyncService extends AbstractSyncService {
|
||||
int code = resp.getStatusLine().getStatusCode();
|
||||
userLog("OPTIONS response: ", code);
|
||||
if (code == HttpStatus.SC_OK) {
|
||||
Header header = resp.getFirstHeader("ms-asprotocolversions");
|
||||
Header header = resp.getFirstHeader("MS-ASProtocolCommands");
|
||||
userLog(header.getValue());
|
||||
header = resp.getFirstHeader("ms-asprotocolversions");
|
||||
String versions = header.getValue();
|
||||
if (versions != null) {
|
||||
if (versions.contains("12.0")) {
|
||||
|
Loading…
Reference in New Issue
Block a user