1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-09 12:48:02 -05:00

Actually use the port specified by the user in EasStore.java.

This commit is contained in:
Kris Wong 2012-01-02 11:43:23 -05:00
parent e97c341e09
commit ba6fc665a8

View File

@ -253,9 +253,10 @@ public class EasStore extends Store {
private Double mProtocolVersionDouble = null;
private String mDeviceId = null;
private Object mInitializationLock = new Object();
private final String mDeviceType = "Android";
private final String mDeviceType = "K9Mail";
private String mHost;
private int mPort;
private String mUsername;
private String mPassword;
private short mConnectionSecurity;
@ -277,6 +278,7 @@ public class EasStore extends Store {
}
mHost = settings.host;
mPort = settings.port;
mUsername = settings.username;
mPassword = settings.password;
@ -667,7 +669,7 @@ public class EasStore extends Store {
boolean mSsl = true;
boolean mTrustSsl = false;
String us = (mSsl ? (mTrustSsl ? "httpts" : "https") : "http") + "://" + mHost +
"/Microsoft-Server-ActiveSync";
":" + Integer.toString(mPort) + "/Microsoft-Server-ActiveSync";
if (cmd != null) {
us += "?Cmd=" + cmd + mCmdString;
}