diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2014-10-20 20:45:40 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2014-10-20 20:45:40 -0700 |
commit | f22c38ab90178026be0213cc24b14e2b06577c8d (patch) | |
tree | cdc8d7850cbe35ea333f838a4f3a52d9729da4bc /src | |
parent | bfb9aaf7fa794c4e7090c33905db9b58d995904f (diff) |
Use LITERAL+ search in the case of Gmail
Diffstat (limited to 'src')
-rwxr-xr-x | src/core/imap/MCIMAPSession.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc index 17db0202..50602842 100755 --- a/src/core/imap/MCIMAPSession.cc +++ b/src/core/imap/MCIMAPSession.cc @@ -2969,7 +2969,14 @@ IndexSet * IMAPSession::search(String * folder, IMAPSearchExpression * expressio if (mYahooServer) { charset = NULL; } - int r = mailimap_uid_search(mImap, charset, key, &result_list); + + int r; + if (mIsGmail) { + r = mailimap_uid_search_literalplus(mImap, charset, key, &result_list); + } + else { + r = mailimap_uid_search(mImap, charset, key, &result_list); + } mailimap_search_key_free(key); MCLog("had error : %i", r); if (r == MAILIMAP_ERROR_STREAM) { |