diff options
-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) && |