diff options
author | Lin Zhan <zhanleewo@gmail.com> | 2015-03-25 14:29:14 +0800 |
---|---|---|
committer | Lin Zhan <zhanleewo@gmail.com> | 2015-03-25 14:29:14 +0800 |
commit | 476f77ac96f23799bb18cdddf4289d0716a08bba (patch) | |
tree | 52a29e33476109815624d0d4cdba4f693ba863e1 /src | |
parent | bcc36e5a33593d30df8904ae880d7999b7723499 (diff) |
The workaround for 163.com
The imap service provided by 163.com could not be access.
required: the libetpan need update to 050f15f30ce40c02d4cf0a9389baca77dec19230
Diffstat (limited to 'src')
-rwxr-xr-x | src/core/imap/MCIMAPSession.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp index 854bddec..20873192 100755 --- a/src/core/imap/MCIMAPSession.cpp +++ b/src/core/imap/MCIMAPSession.cpp @@ -316,6 +316,7 @@ void IMAPSession::init() mConnectionType = ConnectionTypeClear; mCheckCertificateEnabled = true; mVoIPEnabled = true; + mNetEaseWorkaroundEnabled = false; mDelimiter = 0; mBodyProgressEnabled = true; @@ -477,6 +478,16 @@ bool IMAPSession::isVoIPEnabled() return mVoIPEnabled; } +void IMAPSession::setNetEaseWorkaroundEnabled(bool enabled) +{ + mNetEaseWorkaroundEnabled = enabled; +} + +bool IMAPSession::isNetEaseWorkaroundEnabled() +{ + return mNetEaseWorkaroundEnabled; +} + static bool hasError(int errorCode) { return ((errorCode != MAILIMAP_NO_ERROR) && (errorCode != MAILIMAP_NO_ERROR_AUTHENTICATED) && |