aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Lin Zhan <zhanleewo@gmail.com>2015-03-25 17:49:19 +0800
committerGravatar Lin Zhan <zhanleewo@gmail.com>2015-03-25 17:49:19 +0800
commit099522d9fc785553793bd483493eed3c6e225725 (patch)
tree1cb8b701f9478ab46176359465eb9c383bb613cf /src
parent8d91b5b372d6eb38e327bf4754fdd5ba17530a1c (diff)
Update MCIMAPSession.cpp
Diffstat (limited to 'src')
-rwxr-xr-xsrc/core/imap/MCIMAPSession.cpp7
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;
}