Fix problem w/ SmartReply & SmartForward in Exchange 2003
* It doesn't like URLEncoded commands; go figure! * Fixes #2127892 Change-Id: Ibae8cad990ed45accb6699716fda56f45c850939
This commit is contained in:
parent
f671401a3a
commit
7e89834cfd
@ -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