diff options
author | 2015-03-25 17:49:19 +0800 | |
---|---|---|
committer | 2015-03-25 17:49:19 +0800 | |
commit | 099522d9fc785553793bd483493eed3c6e225725 (patch) | |
tree | 1cb8b701f9478ab46176359465eb9c383bb613cf | |
parent | 8d91b5b372d6eb38e327bf4754fdd5ba17530a1c (diff) |
Update MCIMAPSession.cpp
-rwxr-xr-x | src/core/imap/MCIMAPSession.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp index 537692db..d6dcd7d0 100755 --- a/src/core/imap/MCIMAPSession.cpp +++ b/src/core/imap/MCIMAPSession.cpp @@ -382,9 +382,10 @@ 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")) + 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; } |