diff options
Diffstat (limited to 'src/core/imap/MCIMAPSession.cpp')
-rwxr-xr-x | src/core/imap/MCIMAPSession.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp index 1906485b..537692db 100755 --- a/src/core/imap/MCIMAPSession.cpp +++ b/src/core/imap/MCIMAPSession.cpp @@ -381,6 +381,13 @@ IMAPSession::~IMAPSession() void IMAPSession::setHostname(String * hostname) { MC_SAFE_REPLACE_COPY(String, mHostname, hostname); + + if(!mNetEaseWorkaroundEnabled && hostname && (hostname->hasSuffix(String::stringWithUTF8Characters((char *) "@163.com")) + || hostname->hasSuffix(String::stringWithUTF8Characters((char *) "@126.com")) + || hostname->hasSuffix(String::stringWithUTF8Characters((char *) "@yeah.net")) + )) { + mNetEaseWorkaroundEnabled = true; + } } String * IMAPSession::hostname() |